diff options
Diffstat (limited to 'libcxxabi/test/test_exception_storage.cpp')
-rw-r--r-- | libcxxabi/test/test_exception_storage.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxxabi/test/test_exception_storage.cpp b/libcxxabi/test/test_exception_storage.cpp index f1e2fb5e477..0d5deaa3735 100644 --- a/libcxxabi/test/test_exception_storage.cpp +++ b/libcxxabi/test/test_exception_storage.cpp @@ -56,7 +56,10 @@ int main ( int argc, char *argv [] ) { #if LIBCXXABI_HAS_NO_THREADS 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 // Make the threads, let them run, and wait for them to finish for ( int i = 0; i < NUMTHREADS; ++i ) |