Permalink
Browse files

adjusted tests to work without nanoseconds

  • Loading branch information...
1 parent 99a817f commit 22f559b08bd59c98475ecead722d05eda6121642 @duksis duksis committed Oct 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests.sh
View
2 tests.sh
@@ -42,7 +42,7 @@ assert "_clean STOP=1 assert_raises false; assert_end" \
'test #1 "false" failed:\n\tprogram terminated with code 1 instead of 0'
# runtime statistics (omission of -i)
assert_raises "_clean INVARIANT=;
-assert_end | egrep 'all 0 tests passed in [0-9].[0-9]{3}s'"
+assert_end | egrep 'all 0 tests passed in ([0-9]|[0-9].[0-9]{3})s'"
# assert_end exit code is the number of failures
assert_raises "_clean; assert_raises false; assert_raises false; assert_end" 2
# stderr should NOT leak if ignored

0 comments on commit 22f559b

Please sign in to comment.