|
From: <sv...@va...> - 2009-06-01 18:50:32
|
Author: bart
Date: 2009-06-01 19:50:27 +0100 (Mon, 01 Jun 2009)
New Revision: 10192
Log:
Made the call stack printed by DRD for reading the variable GLOB independent of the Linux distribution the test is run on.
Modified:
trunk/drd/tests/tsan_unittest.cpp
Modified: trunk/drd/tests/tsan_unittest.cpp
===================================================================
--- trunk/drd/tests/tsan_unittest.cpp 2009-06-01 18:36:59 UTC (rev 10191)
+++ trunk/drd/tests/tsan_unittest.cpp 2009-06-01 18:50:27 UTC (rev 10192)
@@ -337,7 +337,8 @@
ANNOTATE_TRACE_MEMORY(&GLOB);
printf("test01: positive\n");
Parent();
- printf("\tGLOB=%d\n", GLOB);
+ const int tmp = GLOB;
+ printf("\tGLOB=%d\n", tmp);
}
REGISTER_TEST(Run, 1);
} // namespace test01
|