Use print rather than diag(), as these routine messages shouldn't be
authorNicholas Clark <nick@ccl4.org>
Wed, 26 Dec 2007 13:03:27 +0000 (13:03 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 26 Dec 2007 13:03:27 +0000 (13:03 +0000)
going to STDERR.

p4raw-id: //depot/perl@32726

t/op/upgrade.t

index 787d413..5f2ffa6 100644 (file)
@@ -41,7 +41,9 @@ foreach my $source_type (@keys) {
        my $vars = {};
        $vars->{dest} = $types{$dest_type};
        $vars->{source} = $types{$source_type};
-       diag "Assigning $source_type to $dest_type";
+       # The assignment can potentially trigger assertion failures, so it's
+       # useful to have the diagnostics about what was attempted printed first
+       print "# Assigning $source_type to $dest_type\n";
        $vars->{dest} = $vars->{source};
        is ($vars->{dest}, $vars->{source});
     }