Skip to content

Commit 285ed36

Browse files
committed
C++: Update expected test results
1 parent 1e46e43 commit 285ed36

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

cpp/ql/test/library-tests/arguments/arguments.expected

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
| arguments.c | 15 | --edg |
1616
| arguments.c | 16 | __CODEQL_TEST__ |
1717
| arguments.c | 17 | --gcc |
18-
| arguments.c | 18 | --predefined_macros |
19-
| arguments.c | 19 | <tools>/qltest/predefined_macros |
20-
| arguments.c | 20 | -w |
21-
| arguments.c | 21 | -Werror |
22-
| arguments.c | 22 | arguments.c |
18+
| arguments.c | 18 | -w |
19+
| arguments.c | 19 | -Werror |
20+
| arguments.c | 20 | arguments.c |

cpp/ql/test/library-tests/arguments/arguments.ql

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ from Compilation c, int i, string s
44
// Skip the extractor name; it'll vary depending on platform
55
where
66
i > 0 and
7-
s =
8-
c.getArgument(i)
9-
.replaceAll("\\", "/")
10-
.regexpReplaceAll(".*(/qltest/predefined_macros)", "<tools>$1")
7+
s = c.getArgument(i).replaceAll("\\", "/")
118
select c.getAFileCompiled().toString(), i, s

0 commit comments

Comments
 (0)