[gnumeric] tests: fix duplicate use of test number.



commit 8309d02f7e3f5b34993fe898aece3d54d0816f8d
Author: Morten Welinder <terra gnome org>
Date:   Mon May 24 21:15:32 2010 -0400

    tests: fix duplicate use of test number.

 test/t7113-solver-Lanczos3.pl                      |   11 ++++++++---
 ...6-solver-Misra1b.pl => t7117-solver-Misra1b.pl} |    0
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/test/t7113-solver-Lanczos3.pl b/test/t7113-solver-Lanczos3.pl
index 1b3ef79..cdfa741 100755
--- a/test/t7113-solver-Lanczos3.pl
+++ b/test/t7113-solver-Lanczos3.pl
@@ -12,7 +12,12 @@ my $rle = 6;
 		  sub {
 		      chomp;
 		      print STDERR "--> $_\n";
-		      return 1; # Known failure
-		      return (/^[-+]?(\d|\.\d)/ &&
-			      $_ > $rle);
+		      my $ok = (/^[-+]?(\d|\.\d)/ && $_ > $rle);
+		      if ($ok) {
+			  print STDERR "Unexpected success.\n";
+		      } else {
+			  print STDERR "Known failure.\n" ;
+			  $ok = 1;
+		      }
+		      return $ok;
 		  });
diff --git a/test/t7116-solver-Misra1b.pl b/test/t7117-solver-Misra1b.pl
similarity index 100%
rename from test/t7116-solver-Misra1b.pl
rename to test/t7117-solver-Misra1b.pl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]