Mark ASan global-location-nodebug test as unspported on win.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Mon, 27 Jun 2022 23:03:32 +0000 (16:03 -0700)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Mon, 27 Jun 2022 23:03:32 +0000 (16:03 -0700)
Windows linkers don't have the easy reachable `-Wl,-S` option to strip
the binary. Disable the test for now.

compiler-rt/test/asan/TestCases/global-location-nodebug.cpp

index 6d8aa57..0c8f05f 100644 (file)
@@ -11,6 +11,9 @@
 /// Solaris ld -S has different semantics.
 // XFAIL: solaris
 
+/// MSVC linker doesn't support `-S`.
+// UNSUPPORTED: windows
+
 // CHECK: AddressSanitizer: global-buffer-overflow
 // CLASS_STATIC-NO-G: 0x{{.*}} is located 4 bytes to the right of global variable '{{.*}}C::array{{.*}}' defined in '{{.*}}global-location.cpp' {{.*}} of size 40
 // GLOB-NO-G: 0x{{.*}} is located 4 bytes to the right of global variable '{{.*}}global{{.*}}' defined in '{{.*}}global-location.cpp' {{.*}} of size 40