[compiler-rt] e259f7b - [NFC][sanitizer] Disable a test on Windows

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 01:10:02 PDT 2020


Author: Vitaly Buka
Date: 2020-09-18T01:09:16-07:00
New Revision: e259f7b88266572aaf00cfc1ff7fe88a9fdb1c7a

URL: https://github.com/llvm/llvm-project/commit/e259f7b88266572aaf00cfc1ff7fe88a9fdb1c7a
DIFF: https://github.com/llvm/llvm-project/commit/e259f7b88266572aaf00cfc1ff7fe88a9fdb1c7a.diff

LOG: [NFC][sanitizer] Disable a test on Windows

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
index 2e3790005b96..c05b665a6879 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
@@ -66,7 +66,13 @@ TEST(SanitizerCommon, StackDepotSeveral) {
   EXPECT_NE(i1, i2);
 }
 
-TEST(SanitizerCommon, StackDepotPrint) {
+#if SANITIZER_WINDOWS
+// CaptureStderr does not work on Windows.
+#define Maybe_StackDepotPrint DISABLED_StackDepotPrint
+#else
+#define Maybe_StackDepotPrint StackDepotPrint
+#endif
+TEST(SanitizerCommon, Maybe_StackDepotPrint) {
   uptr array1[] = {1, 2, 3, 4, 7};
   StackTrace s1(array1, ARRAY_SIZE(array1));
   u32 i1 = StackDepotPut(s1);


        


More information about the llvm-commits mailing list