X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fsort.t;h=2a86b38c71fd0c318ffdc16281aee6210f8e12e6;hb=3444c34c7da9f235e181b5c175a1fa1357e7a055;hp=8161701b0e0f36f89fb6f74ad71dbd2c7cca2396;hpb=8e664e1028b4453f9f359cddea96cf56ea4a7c51;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/sort.t b/t/op/sort.t index 8161701..2a86b38 100755 --- a/t/op/sort.t +++ b/t/op/sort.t @@ -2,16 +2,10 @@ BEGIN { chdir 't' if -d 't'; - unshift @INC, '../lib'; + @INC = '../lib'; } use warnings; -print "1..57\n"; - -# XXX known to leak scalars -{ - no warnings 'uninitialized'; - $ENV{PERL_DESTRUCT_LEVEL} = 0 unless $ENV{PERL_DESTRUCT_LEVEL} > 3; -} +print "1..58\n"; # these shouldn't hang { @@ -321,3 +315,10 @@ sub cxt_six { sort test_if_scalar 1,2 } print "# x = '@b'\n"; print !$def ? "ok 57\n" : "not ok 57\n"; } + +# Bug 19991001.003 +{ + sub routine { "one", "two" }; + @a = sort(routine(1)); + print "@a" eq "one two" ? "ok 58\n" : "not ok 58\n"; +}