[compiler-rt] [ASan] Mark recent integration tests as accordingly for MSVC (PR #135889)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 11:46:38 PDT 2025
https://github.com/39otsu updated https://github.com/llvm/llvm-project/pull/135889
>From 43fb37edf6be4736ab847d5edb6975059417d23c Mon Sep 17 00:00:00 2001
From: 39otsu <mccodi11 at gmail.com>
Date: Tue, 15 Apr 2025 17:25:16 -0700
Subject: [PATCH 1/4] Marked as UNSUPPORTED
---
compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp b/compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp
index da1f5f2fb9789..6dd4bdaa02773 100644
--- a/compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp
+++ b/compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp
@@ -1,5 +1,6 @@
// RUN: %clangxx_asan -O0 %s -o %t && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O0 %s -o %t -fsanitize-address-use-after-return=always && not %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: MSVC
#include "defines.h"
#include <stdint.h>
>From 8713670d8dcf34fadea138f541372a974eee2c9c Mon Sep 17 00:00:00 2001
From: 39otsu <mccodi11 at gmail.com>
Date: Tue, 15 Apr 2025 17:25:33 -0700
Subject: [PATCH 2/4] Marked as XFAIL
---
.../test/asan/TestCases/shadowed-stack-serialization.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp b/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
index 4018c097aed5a..6a88c3c9ea9be 100644
--- a/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
+++ b/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
@@ -1,5 +1,7 @@
// RUN: %clangxx_asan -O0 %s -o %t
// RUN: not %run %t 2>&1 | FileCheck %s
+// MSVC marks this as xfail because it doesn't generate the metadata to display the variable's location in source.
+// XFAIL: msvc
int main() {
int x;
>From 1a6c8ed345b90d63a2d136afa27a799181b1db8a Mon Sep 17 00:00:00 2001
From: MacGyver Codilla <mcodilla at microsoft.com>
Date: Mon, 4 Aug 2025 11:42:42 -0700
Subject: [PATCH 3/4] Fix capitalization
---
.../test/asan/TestCases/shadowed-stack-serialization.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp b/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
index 6a88c3c9ea9be..ea23a535052a3 100644
--- a/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
+++ b/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
@@ -1,7 +1,7 @@
// RUN: %clangxx_asan -O0 %s -o %t
// RUN: not %run %t 2>&1 | FileCheck %s
// MSVC marks this as xfail because it doesn't generate the metadata to display the variable's location in source.
-// XFAIL: msvc
+// XFAIL: MSVC
int main() {
int x;
>From 6963896cd949a8cc8e64a52bf917e6b54e859de3 Mon Sep 17 00:00:00 2001
From: MacGyver Codilla <mcodilla at microsoft.com>
Date: Mon, 4 Aug 2025 11:46:03 -0700
Subject: [PATCH 4/4] Fix capitalization
---
compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp | 2 +-
.../test/asan/TestCases/shadowed-stack-serialization.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp b/compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp
index 6dd4bdaa02773..d2c44fcd04050 100644
--- a/compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp
+++ b/compiler-rt/test/asan/TestCases/fakeframe-right-redzone.cpp
@@ -1,6 +1,6 @@
// RUN: %clangxx_asan -O0 %s -o %t && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O0 %s -o %t -fsanitize-address-use-after-return=always && not %run %t 2>&1 | FileCheck %s
-// UNSUPPORTED: MSVC
+// UNSUPPORTED: msvc
#include "defines.h"
#include <stdint.h>
diff --git a/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp b/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
index ea23a535052a3..6a88c3c9ea9be 100644
--- a/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
+++ b/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
@@ -1,7 +1,7 @@
// RUN: %clangxx_asan -O0 %s -o %t
// RUN: not %run %t 2>&1 | FileCheck %s
// MSVC marks this as xfail because it doesn't generate the metadata to display the variable's location in source.
-// XFAIL: MSVC
+// XFAIL: msvc
int main() {
int x;
More information about the llvm-commits
mailing list