[PATCH] [libcxxabi] Refactor building and testing libc++abi without threads
Eric Fiselier
eric at efcs.ca
Mon Nov 24 14:15:56 PST 2014
================
Comment at: test/test_exception_storage.cpp:59-62
@@ -58,3 +58,6 @@
size_t thread_globals;
- retVal = thread_code(&thread_globals) != 0;
+ // Check that __cxa_get_globals() is not NULL.
+ if (thread_code(&thread_globals) == 0) {
+ retVal = 1;
+ }
#else
----------------
`__cxa_get_globals()` never returns null even when `LIBCXXABI_HAS_NO_THREADS` is defined. So I think the old expected result is wrong.
http://reviews.llvm.org/D6393
More information about the cfe-commits
mailing list