BUG#: 7961
authorkumpf <kumpf>
Thu, 2 Oct 2008 00:06:40 +0000 (00:06 +0000)
committerkumpf <kumpf>
Thu, 2 Oct 2008 00:06:40 +0000 (00:06 +0000)
TITLE: TestTracer fails with segmentation fault
DESCRIPTION: Correct the new Tracer::setTraceFile test case.

src/Pegasus/Common/tests/Tracer/Tracer.cpp

index 8b9acc396a507b93e4b72429abb0dcd46e70a641..c531c140199c24cd6c1321ff86a3dcd1a3072632 100644 (file)
@@ -924,8 +924,8 @@ Uint32 testMemoryHandler(const char* filename)
         tttParms[x]->trd->join();
     }
 
-    // Setting a null trace file should fail.
-    PEGASUS_TEST_ASSERT(Tracer::setTraceFile(0));
+    // Setting an empty trace file name should fail.
+    PEGASUS_TEST_ASSERT(Tracer::setTraceFile(""));
 
     if (Tracer::setTraceFile(filename))
     {