Open GoogleCodeExporter opened 9 years ago
Also happens on Linux, good repro is here: (against r3260)
diff --git tsan/thread_sanitizer.cc tsan/thread_sanitizer.cc
index 47c3971..dccdea7 100644
--- tsan/thread_sanitizer.cc
+++ tsan/thread_sanitizer.cc
@@ -8137,7 +8137,8 @@ static void SetupIgnore() {
g_ignore_lists->ignores.push_back(IgnoreFun("_setjmp"));
g_ignore_lists->ignores.push_back(IgnoreFun("_longjmp_unwind"));
- g_ignore_lists->ignores.push_back(IgnoreFun("__mktime_internal"));
+ g_ignore_lists->ignores_r.push_back(IgnoreFun("__mktime_internal"));
+ g_ignore_lists->ignores_r.push_back(IgnoreFun("mktime"));
// http://code.google.com/p/data-race-test/issues/detail?id=40
g_ignore_lists->ignores_r.push_back(IgnoreFun("_ZNSsD1Ev"));
diff --git unittest/posix_tests.cc unittest/posix_tests.cc
index fff1197..d428fee 100644
--- unittest/posix_tests.cc
+++ unittest/posix_tests.cc
@@ -1232,7 +1232,7 @@ void Worker2() {
// Disabled because fun_r:mktime and fun_r:__mktime_internal don't suppress
// the reports below mktime
// http://code.google.com/p/data-race-test/issues/detail?id=63
-TEST(NegativeTests, DISABLED_MktimeTest) {
+TEST(NegativeTests, MktimeTest) {
MyThreadArray t(Worker2, Worker2);
t.Start();
t.Join();
-----------------------------------------------------
We need a way to fun_r in such scenarious...
Original comment by timurrrr
on 31 Mar 2011 at 9:29
Original issue reported on code.google.com by
timurrrr
on 29 Mar 2011 at 1:40