summaryrefslogtreecommitdiff
path: root/test/tsan
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-06-07 20:43:15 +0000
committerVedant Kumar <vsk@apple.com>2017-06-07 20:43:15 +0000
commit63ddb4b32b74ade76730b721ea8553baf39211c5 (patch)
treeafa2679d98a799488041339e8b739e32e42530a8 /test/tsan
parent439e42a0184069cdbc31d106052e3f6ce01cd8e0 (diff)
Fix tsan test for Darwin. NFCI.
On Darwin, strerror_r returns an int, not a char*. I don't think this test really depends on what strerror_r returns, so I've used something else in place of the result of the call to strerror_r. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@304941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan')
-rw-r--r--test/tsan/strerror_r.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tsan/strerror_r.cc b/test/tsan/strerror_r.cc
index f8570b67f..972d5f4a7 100644
--- a/test/tsan/strerror_r.cc
+++ b/test/tsan/strerror_r.cc
@@ -10,7 +10,8 @@
char buffer[1000];
void *Thread(void *p) {
- return strerror_r(TEST_ERROR, buffer, sizeof(buffer));
+ (void)strerror_r(TEST_ERROR, buffer, sizeof(buffer));
+ return p;
}
int main() {