summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2011-01-05 19:14:06 -0600
committerCraig A. Berry <craigberry@mac.com>2011-01-05 22:00:29 -0600
commitc1b879e57aecbfe520b3f44dd28472d1862f037d (patch)
tree1fa7431d1bc4beb0235c8ba6088a1971c004977f /t
parent63e9201e866868a5d97edac3c19055f25c3ca925 (diff)
downloadperl-c1b879e57aecbfe520b3f44dd28472d1862f037d.tar.gz
Make newline on last record explicit.
On VMS, the last line written to a file will get a trailing newline willy nilly. This has its advantages insofar as you never get the "no newline at end of file" warnings from various utilities, but reality conflicts with expectations when you explicitly test for the last (or only) line *not* ending with newline, which is what the recent addtion to ref.t (5e3072707906cc4cb8a364c4cf7c487df0300caa) was doing. Adding an explicit newline makes everyone happy.
Diffstat (limited to 't')
-rw-r--r--t/op/ref.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/op/ref.t b/t/op/ref.t
index 83b5cb8a98..0a39f106c7 100644
--- a/t/op/ref.t
+++ b/t/op/ref.t
@@ -381,16 +381,16 @@ curr_test($test + 2);
is(
runperl(
- stderr => 1, prog => 'sub DESTROY { print q-aaa- } bless \$a[0]'
+ stderr => 1, prog => 'sub DESTROY { print qq-aaa\n- } bless \$a[0]'
),
- "aaa", 'DESTROY called on array elem'
+ "aaa\n", 'DESTROY called on array elem'
);
is(
runperl(
stderr => 1,
- prog => '{ bless \my@x; *a=sub{@x}}sub DESTROY { print q-aaa- }'
+ prog => '{ bless \my@x; *a=sub{@x}}sub DESTROY { print qq-aaa\n- }'
),
- "aaa",
+ "aaa\n",
'DESTROY called on closure variable'
);