Skip to content

Commit 20e4c7a

Browse files
committed
[test][asan] Attempt to collect info about Darwin failures
Watching https://green.lab.llvm.org/green/job/clang-stage1-RA/
1 parent 818e76d commit 20e4c7a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
// FIXME: Investigate.
77
// UNSUPPORTED: android
88

9-
// FIXME: Fails on Darwin
10-
// UNSUPPORTED: darwin
11-
129
#include <algorithm>
1310
#include <assert.h>
1411
#include <csignal>
@@ -77,15 +74,15 @@ int main(void) {
7774
if ((uintptr_t)main_stack > (uintptr_t)alt_stack)
7875
std::swap(alt_stack, main_stack);
7976

80-
pthread_attr_t attr;
81-
assert(pthread_attr_init(&attr) == 0);
82-
assert(pthread_attr_setstack(&attr, main_stack, kStackSize) == 0);
83-
8477
fprintf(stderr, "main_stack: %p-%p\n", main_stack,
8578
(char *)main_stack + kStackSize);
8679
fprintf(stderr, "alt_stack: %p-%p\n", alt_stack,
8780
(char *)alt_stack + kStackSize);
8881

82+
pthread_attr_t attr;
83+
assert(pthread_attr_init(&attr) == 0);
84+
assert(pthread_attr_setstack(&attr, main_stack, kStackSize) == 0);
85+
8986
pthread_t tid;
9087
assert(pthread_create(&tid, &attr, Thread, alt_stack) == 0);
9188

0 commit comments

Comments
 (0)