This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Retract #10324 and #10333; not needed.
[perl5.git]
/
t
/
op
/
sort.t
diff --git
a/t/op/sort.t
b/t/op/sort.t
index
8161701
..
2a86b38
100755
(executable)
--- a/
t/op/sort.t
+++ b/
t/op/sort.t
@@
-2,16
+2,10
@@
BEGIN {
chdir 't' if -d 't';
BEGIN {
chdir 't' if -d 't';
-
unshift @INC,
'../lib';
+
@INC =
'../lib';
}
use warnings;
}
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
{
# 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";
}
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";
+}