Permalink
Browse files

Add iteration number to test failure message

  • Loading branch information...
1 parent ab5efe1 commit 7fc78b274acd20cffebad7770a36f7e43bc7bc15 @caio committed Mar 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/check_fuzzyclock.c
View
@@ -36,7 +36,7 @@ START_TEST(test_oclock) {
get_fuzzy_time(clock, buff);
- fail_if(strcmp(test, buff) != 0, "WANTED \"%s\", GOT \"%s\"", test, buff);
+ fail_if(strcmp(test, buff) != 0, "T%0d:WANTED \"%s\", GOT \"%s\"", i, test, buff);
}
}
END_TEST
@@ -59,7 +59,7 @@ START_TEST(test_fivepast) {
get_fuzzy_time(clock, buff);
- fail_if(strcmp(test, buff) != 0, "WANTED \"%s\", GOT \"%s\"", test, buff);
+ fail_if(strcmp(test, buff) != 0, "T%0d:WANTED \"%s\", GOT \"%s\"", i, test, buff);
}
}
END_TEST

0 comments on commit 7fc78b2

Please sign in to comment.