[clang] 03cc52d - [-Wunsafe-buffer-usage] To disable a test on Windows systems.
Ziqing Luo via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 8 17:38:50 PST 2023
Author: Ziqing Luo
Date: 2023-02-08T17:38:19-08:00
New Revision: 03cc52dfd1dbb4a59b479da55e87838fb93d2067
URL: https://github.com/llvm/llvm-project/commit/03cc52dfd1dbb4a59b479da55e87838fb93d2067
DIFF: https://github.com/llvm/llvm-project/commit/03cc52dfd1dbb4a59b479da55e87838fb93d2067.diff
LOG: [-Wunsafe-buffer-usage] To disable a test on Windows systems.
One of the tests in the commit
'bdf4f2bea50e87f5b9273e3bbc9a7753bca3a6bb' sometimes fails on one of
the buildbots runing on a Windows machine. For example,
"https://lab.llvm.org/buildbot/#/builders/60/builds/10615" is a failed
build.
Now we disable it until we figure out why this could happen.
Added:
Modified:
clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-local-var-span.cpp
Removed:
################################################################################
diff --git a/clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-local-var-span.cpp b/clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-local-var-span.cpp
index 4f0e0fa31a431..3cb4f57a6efd6 100644
--- a/clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-local-var-span.cpp
+++ b/clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-local-var-span.cpp
@@ -1,3 +1,4 @@
+// REQUIRES: !system-windows
// RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
typedef int * Int_ptr_t;
typedef int Int_t;
@@ -97,10 +98,10 @@ void decl_without_init() {
int tmp;
int * p;
// CHECK-DAG: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:10}:"std::span<int> p"
- // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]
+ // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]:{{^3}}
Int_ptr_t q;
// CHECK-DAG: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:14}:"std::span<int> q"
- // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]
+ // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]:{{^3}}
tmp = p[5];
tmp = q[5];
}
More information about the cfe-commits
mailing list