[Box Backup-commit] COMMIT r979 - box/trunk/infrastructure
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Thu, 12 Oct 2006 21:47:14 +0100
Author: chris
Date: 2006-10-12 21:47:14 +0100 (Thu, 12 Oct 2006)
New Revision: 979
Modified:
box/trunk/infrastructure/buildenv-testmain-template.cpp
Log:
* Record the file and line of first test failure, and print them
at the end of the test, useful for debugging when the first
failure has scrolled off screen
Modified: box/trunk/infrastructure/buildenv-testmain-template.cpp
===================================================================
--- box/trunk/infrastructure/buildenv-testmain-template.cpp 2006-10-12 20:46:03 UTC (rev 978)
+++ box/trunk/infrastructure/buildenv-testmain-template.cpp 2006-10-12 20:47:14 UTC (rev 979)
@@ -41,6 +41,8 @@
#endif
int failures = 0;
+int first_fail_line;
+std::string first_fail_file;
int filedes_open_at_beginning = -1;
@@ -128,7 +130,10 @@
}
if(failures > 0)
{
- printf("FAILED: %d tests failed\n", failures);
+ printf("FAILED: %d tests failed (first at "
+ "%s:%d)\n", failures,
+ first_fail_file.c_str(),
+ first_fail_line);
}
else
{