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

[PATCH fresh_perl.t] Being more careful about newlines

Thread Next
Michael G Schwern
July 22, 2005 23:41
[PATCH fresh_perl.t] Being more careful about newlines
Message ID:
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
Reality is that which, when you stop believing in it, doesn't go away.
	-- Phillip K. Dick

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About