[libcxx-commits] [PATCH] D144490: [libc++abi] Adjust test_exception_storage.pass.cpp

Mikhail Maltsev via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 21 08:14:13 PST 2023


miyuki updated this revision to Diff 499188.
miyuki added a comment.

Fixed indentation.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144490/new/

https://reviews.llvm.org/D144490

Files:
  libcxxabi/test/test_exception_storage.pass.cpp


Index: libcxxabi/test/test_exception_storage.pass.cpp
===================================================================
--- libcxxabi/test/test_exception_storage.pass.cpp
+++ libcxxabi/test/test_exception_storage.pass.cpp
@@ -9,13 +9,16 @@
 #include <algorithm>
 #include <cstdio>
 #include <cstdlib>
-#include <__threading_support>
-#include <unistd.h>
-
-#include "../src/cxa_exception.h"
 
 #include "test_macros.h"
 
+#ifndef TEST_HAS_NO_THREADS
+#  include <__threading_support>
+#  include <unistd.h>
+#endif
+
+#include "../src/cxa_exception.h"
+
 typedef __cxxabiv1::__cxa_eh_globals globals_t ;
 
 void *thread_code (void *parm) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144490.499188.patch
Type: text/x-patch
Size: 642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230221/f7690fba/attachment.bin>


More information about the libcxx-commits mailing list