Skip to content

Commit 7e6a5fe

Browse files
[clang][bpf] Fix invalid RUN lines in stack protector warning test (#65251)
2 of them were missing the ":" on the end. Adding them broke the test so I had to add a new prefix just for the warning runs only. I manually checked the first RUNs and there is no warning emitted, as expected.
1 parent 4f1f171 commit 7e6a5fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/test/CodeGen/bpf-stack-protector.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// REQUIRES: bpf-registered-target
22

3-
// RUN %clang -target bpf -S -emit-llvm -o - %s -fno-stack-protector 2>&1 \
4-
// RUN | FileCheck -check-prefix=OFF -check-prefix=COMMON %s
3+
// RUN: %clang -target bpf -S -emit-llvm -o - %s -fno-stack-protector 2>&1 \
4+
// RUN: | FileCheck -check-prefix=OFF -check-prefix=COMMON %s
55

66
// RUN: %clang -target bpf -S -emit-llvm -o - %s -fstack-protector 2>&1 \
7-
// RUN: | FileCheck -check-prefix=ON -check-prefix=COMMON %s
7+
// RUN: | FileCheck -check-prefix=ON -check-prefix=COMMON -check-prefix=WARNING %s
88

99
// RUN: %clang -target bpf -S -emit-llvm -o - %s -fstack-protector-all 2>&1 \
10-
// RUN: | FileCheck -check-prefix=ALL -check-prefix=COMMON %s
10+
// RUN: | FileCheck -check-prefix=ALL -check-prefix=COMMON -check-prefix=WARNING %s
1111

1212
// RUN: %clang -target bpf -S -emit-llvm -o - %s -fstack-protector-strong 2>&1 \
13-
// RUN: | FileCheck -check-prefix=STRONG -check-prefix=COMMON %s
13+
// RUN: | FileCheck -check-prefix=STRONG -check-prefix=COMMON -check-prefix=WARNING %s
1414

1515
typedef __SIZE_TYPE__ size_t;
1616

@@ -22,7 +22,7 @@ char *strcpy(char *s1, const char *s2);
2222
// ON: warning: ignoring '-fstack-protector'
2323
// ALL: warning: ignoring '-fstack-protector-all'
2424
// STRONG: warning: ignoring '-fstack-protector-strong'
25-
// COMMON-SAME: option as it is not currently supported for target 'bpf'
25+
// WARNING-SAME: option as it is not currently supported for target 'bpf'
2626

2727
// COMMON: define {{.*}}void @test1(ptr noundef %{{[0-9a-z]+}}) #[[A:.*]] {
2828
void test1(const char *msg) {

0 commit comments

Comments
 (0)