summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/tests/rtl
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-12-25 11:29:19 +0000
committerAlexey Samsonov <samsonov@google.com>2013-12-25 11:29:19 +0000
commit5746c076294babd11ddba633043f946c18ac8d87 (patch)
treecfef7f2e532fa241ba49fba186c381ebd1ce045e /compiler-rt/lib/tsan/tests/rtl
parent1b3437c69a1c6174b4ccdb346a10c0b4035886ab (diff)
downloadbcm5719-llvm-5746c076294babd11ddba633043f946c18ac8d87.tar.gz
bcm5719-llvm-5746c076294babd11ddba633043f946c18ac8d87.zip
[Sanitizer] Use different MemoryMappingLayout::DumpListOfModules on Linux and Mac.
Make a unit test added in r198004 more robust. llvm-svn: 198012
Diffstat (limited to 'compiler-rt/lib/tsan/tests/rtl')
-rw-r--r--compiler-rt/lib/tsan/tests/rtl/tsan_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/tests/rtl/tsan_test.cc b/compiler-rt/lib/tsan/tests/rtl/tsan_test.cc
index 2184284d39c..b8b9555c2bf 100644
--- a/compiler-rt/lib/tsan/tests/rtl/tsan_test.cc
+++ b/compiler-rt/lib/tsan/tests/rtl/tsan_test.cc
@@ -45,6 +45,9 @@ int run_tests(int argc, char **argv) {
return res;
}
+const char *argv0;
+
int main(int argc, char **argv) {
+ argv0 = argv[0];
return run_tests(argc, argv);
}
OpenPOWER on IntegriCloud