Fix the pass() function to use the standard syntax too. (Bug 477512) r=jwalden
authorL. David Baron <dbaron@dbaron.org>
Tue, 10 Feb 2009 16:56:32 -0800
changeset 24906 af294f0d2c6ae8932198e83f37fd3348ac38592d
parent 24905 54417ebbaea25706897aaa1db1a0081b3ad83107
child 24907 37c32758f73d23572c6b8eb2e294b26f71a955cd
push idunknown
push userunknown
push dateunknown
reviewersjwalden
bugs477512
milestone1.9.2a1pre
Fix the pass() function to use the standard syntax too. (Bug 477512) r=jwalden
xpcom/tests/TestHarness.h
--- a/xpcom/tests/TestHarness.h
+++ b/xpcom/tests/TestHarness.h
@@ -67,22 +67,23 @@ void fail(const char* msg, ...)
   va_start(ap, msg);
   vprintf(msg, ap);
   va_end(ap);
 
   putchar('\n');
 }
 
 /**
- * Prints the given string followed by " PASSED!\n", to be used at the end
- * of a successful test function.
+ * Prints the given string prepending "TEST-PASS | " for the benefit of
+ * the test harness and with "\n" at the end, to be used at the end of a
+ * successful test function.
  */
 void passed(const char* test)
 {
-  printf("%s PASSED!\n", test);
+  printf("TEST-PASS | %s\n", test);
 }
 
 
 class ScopedXPCOM
 {
   public:
     ScopedXPCOM(const char* testName,
                 nsIDirectoryServiceProvider *dirSvcProvider = NULL)