Make the test acknowledge that self-ties are disabled as #7213 said.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 13 Oct 2000 23:20:30 +0000 (23:20 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 13 Oct 2000 23:20:30 +0000 (23:20 +0000)
p4raw-id: //depot/perl@7227

t/op/tie.t

index cbf92c6..afcc4a1 100755 (executable)
@@ -13,6 +13,7 @@ $|=1;
 
 # catch warnings into fatal errors
 $SIG{__WARN__} = sub { die "WARNING: @_" } ;
+$SIG{__DIE__}  = sub { die @_ };
 
 undef $/;
 @prgs = split "\n########\n", <DATA>;
@@ -25,7 +26,7 @@ for (@prgs){
     $results = $@ ;
     $results =~ s/\n+$//;
     $expected =~ s/\n+$//;
-    if ( $status or $results and $results !~ /^WARNING: $expected/){
+    if ( $status or $results and $results !~ /^(WARNING: )?$expected/){
        print STDERR "STATUS: $status\n";
        print STDERR "PROG: $prog\n";
        print STDERR "EXPECTED:\n$expected\n";
@@ -173,6 +174,7 @@ sub Self::DESTROY { $b = $_[0] + 0; }
 }
 die unless $a == $b;
 EXPECT
+Self-ties are not supported 
 ########
 # Interaction of tie and vec