develooper Front page | perl.perl5.porters | Postings from July 2005

[PATCH fresh_perl.t] Being more careful about newlines

Thread Next
From:
Michael G Schwern
Date:
July 22, 2005 23:41
Subject:
[PATCH fresh_perl.t] Being more careful about newlines
Message ID:
20050722195334.GA12431@windhund.schwern.org
Removing the auto-newline appending in fresh_perl_is() exposed some newline
sloppiness in t/run/fresh_perl.t.

* When switches were stripped from test code a blank line was left.
  This confused attempts by fresh_perl to display the first line of the
  program as a default name.

* Some programs have no expected output, we only care that they don't
  segfault.  These would warn as the expected output was undef.

* Tests with no switches generated undef warnings.

* Separating the test into the program and the expected part stripped
  the trailing newline off the program causing a test to fail which
  ended in a here-doc separator.


-- 
Michael G Schwern     schwern@pobox.com     http://www.pobox.com/~schwern
Reality is that which, when you stop believing in it, doesn't go away.
	-- Phillip K. Dick

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About