Skip to content

Commit a3efcf6

Browse files
authored
Merge pull request #2495 from hmakholm/pr/update-c-test
C++ tests: generalize arguments tests
2 parents fa8e5e6 + 6bdf186 commit a3efcf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| arguments.c | 12 | linux_x86_64 |
1313
| arguments.c | 13 | --gcc |
1414
| arguments.c | 14 | --predefined_macros |
15-
| arguments.c | 15 | <root>/tools/qltest/predefined_macros |
15+
| arguments.c | 15 | <tools>/qltest/predefined_macros |
1616
| arguments.c | 16 | -w |
1717
| arguments.c | 17 | -Werror |
1818
| arguments.c | 18 | arguments.c |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ where
77
s = c
88
.getArgument(i)
99
.replaceAll("\\", "/")
10-
.regexpReplaceAll(".*(tools/qltest/predefined_macros)", "<root>/$1")
10+
.regexpReplaceAll(".*(/qltest/predefined_macros)", "<tools>$1")
1111
select c.getAFileCompiled().toString(), i, s

0 commit comments

Comments
 (0)