Skip to content

Commit 1e5c1a3

Browse files
authored
Make the CHECK lines here resistent to chandlerc (#118736)
Specifically, usernames containing `handle`, such as `chandlerc`, often end up in paths, including the path of this test file which contains the word `overflow`. Combined, they create a match for `handle.*overflow` in the filename on my system (but likely not many others), leading this test to mysteriously fail for unfortunate usernames like mine. =D No discussion of the amount of time I spent debugging this please. =[
1 parent 6b07853 commit 1e5c1a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/test/CodeGen/ignore-overflow-pattern.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
// unsigned negation, for example:
2222
// unsigned long A = -1UL;
2323

24+
// Skip over parts of the IR containing this file's name.
25+
// CHECK: source_filename = {{.*}}
2426

27+
// Ensure we don't see anything about handling overflow before the tests below.
2528
// CHECK-NOT: handle{{.*}}overflow
2629

2730
extern unsigned a, b, c;

0 commit comments

Comments
 (0)