[llvm-commits] [compiler-rt] r169230 - /compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
Dmitry Vyukov
dvyukov at google.com
Mon Dec 3 23:27:33 PST 2012
Author: dvyukov
Date: Tue Dec 4 01:27:32 2012
New Revision: 169230
URL: http://llvm.org/viewvc/llvm-project?rev=169230&view=rev
Log:
tsan: check if PWD env var is absent
On some programs I see:
failed to open suppressions file '<null>/testing/tsan/v2/tsan.supp'
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc?rev=169230&r1=169229&r2=169230&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc Tue Dec 4 01:27:32 2012
@@ -27,7 +27,7 @@
if (filename == 0 || filename[0] == 0)
return 0;
InternalScopedBuffer<char> tmp(4*1024);
- if (filename[0] == '/')
+ if (filename[0] == '/' || GetPwd() == 0)
internal_snprintf(tmp.data(), tmp.size(), "%s", filename);
else
internal_snprintf(tmp.data(), tmp.size(), "%s/%s", GetPwd(), filename);
More information about the llvm-commits
mailing list