Skip to content

Commit 6dbdc9e

Browse files
authored
Merge pull request github#16784 from github/redsun82/fix-warnings-in-ql-tests
C++/Java: Accept new warning format in ql tests
2 parents 45ece48 + b7a2ea8 commit 6dbdc9e

File tree

16 files changed

+35
-35
lines changed

16 files changed

+35
-35
lines changed

cpp/ql/test/library-tests/dataflow/dataflow-edge-tests/additionalEdges.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (additionalEdges.ql:31,6-14)
2-
WARNING: Module DataFlow has been deprecated and may be removed in future (additionalEdges.ql:31,31-39)
3-
WARNING: Module DataFlow has been deprecated and may be removed in future (additionalEdges.ql:32,7-15)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (additionalEdges.ql:31,6-14)
2+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (additionalEdges.ql:31,31-39)
3+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (additionalEdges.ql:32,7-15)
44
| tryExcept.c:7:7:7:7 | x | tryExcept.c:14:10:14:10 | x |
55
| tryExcept.c:7:13:7:14 | 0 | tryExcept.c:10:9:10:9 | y |
66
| tryExcept.c:10:9:10:9 | y | tryExcept.c:10:5:10:9 | ... = ... |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (standardEdges.ql:4,6-14)
2-
WARNING: Module DataFlow has been deprecated and may be removed in future (standardEdges.ql:4,31-39)
3-
WARNING: Module DataFlow has been deprecated and may be removed in future (standardEdges.ql:5,7-15)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (standardEdges.ql:4,6-14)
2+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (standardEdges.ql:4,31-39)
3+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (standardEdges.ql:5,7-15)
44
| tryExcept.c:7:13:7:14 | 0 | tryExcept.c:10:9:10:9 | y |
55
| tryExcept.c:10:9:10:9 | y | tryExcept.c:10:5:10:9 | ... = ... |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (has-parameter-flow-out.ql:5,18-61)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (has-parameter-flow-out.ql:5,18-61)
22
testFailures
33
failures

cpp/ql/test/library-tests/dataflow/dataflow-tests/localFlow.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (localFlow.ql:4,6-14)
2-
WARNING: Module DataFlow has been deprecated and may be removed in future (localFlow.ql:4,31-39)
3-
WARNING: Module DataFlow has been deprecated and may be removed in future (localFlow.ql:6,3-11)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (localFlow.ql:4,6-14)
2+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (localFlow.ql:4,31-39)
3+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (localFlow.ql:6,3-11)
44
| example.c:15:37:15:37 | b | example.c:15:37:15:37 | b |
55
| example.c:15:37:15:37 | b | example.c:19:6:19:6 | b |
66
| example.c:15:44:15:46 | pos | example.c:24:24:24:26 | pos |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (test-number-of-outnodes.ql:5,18-61)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (test-number-of-outnodes.ql:5,18-61)
22
failures
33
testFailures

cpp/ql/test/library-tests/dataflow/dataflow-tests/test-source-sink.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (test-source-sink.ql:3,25-42)
2-
WARNING: Module DataFlow has been deprecated and may be removed in future (test-source-sink.ql:3,57-74)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (test-source-sink.ql:3,25-42)
2+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (test-source-sink.ql:3,57-74)
33
astFlow
44
| BarrierGuard.cpp:5:19:5:24 | source | BarrierGuard.cpp:9:10:9:15 | source |
55
| BarrierGuard.cpp:13:17:13:22 | source | BarrierGuard.cpp:15:10:15:15 | source |

cpp/ql/test/library-tests/dataflow/fields/partial-definition-diff.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (partial-definition-diff.ql:7,8-51)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (partial-definition-diff.ql:7,8-51)
22
| A.cpp:25:13:25:13 | c | AST only |
33
| A.cpp:27:28:27:28 | c | AST only |
44
| A.cpp:28:23:28:26 | this | IR only |

cpp/ql/test/library-tests/dataflow/fields/partial-definition.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (partial-definition.ql:6,8-51)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (partial-definition.ql:6,8-51)
22
| A.cpp:25:7:25:10 | this |
33
| A.cpp:25:13:25:13 | c |
44
| A.cpp:27:22:27:25 | this |
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (taint.ql:6,48-56)
2-
WARNING: Module DataFlow has been deprecated and may be removed in future (taint.ql:7,24-32)
3-
WARNING: Module DataFlow has been deprecated and may be removed in future (taint.ql:11,22-30)
4-
WARNING: Module TaintTracking has been deprecated and may be removed in future (taint.ql:19,20-33)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (taint.ql:6,48-56)
2+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (taint.ql:7,24-32)
3+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (taint.ql:11,22-30)
4+
WARNING: module 'TaintTracking' has been deprecated and may be removed in future (taint.ql:19,20-33)
55
failures
66
testFailures

cpp/ql/test/library-tests/dataflow/taint-tests/localTaint.expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
WARNING: Module DataFlow has been deprecated and may be removed in future (localTaint.ql:4,6-14)
2-
WARNING: Module DataFlow has been deprecated and may be removed in future (localTaint.ql:4,31-39)
3-
WARNING: Module DataFlow has been deprecated and may be removed in future (localTaint.ql:7,6-14)
4-
WARNING: Module TaintTracking has been deprecated and may be removed in future (localTaint.ql:6,3-16)
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (localTaint.ql:4,6-14)
2+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (localTaint.ql:4,31-39)
3+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (localTaint.ql:7,6-14)
4+
WARNING: module 'TaintTracking' has been deprecated and may be removed in future (localTaint.ql:6,3-16)
55
| arrayassignment.cpp:9:9:9:10 | 0 | arrayassignment.cpp:10:14:10:14 | x | |
66
| arrayassignment.cpp:9:9:9:10 | 0 | arrayassignment.cpp:11:15:11:15 | x | |
77
| arrayassignment.cpp:9:9:9:10 | 0 | arrayassignment.cpp:12:13:12:13 | x | |

0 commit comments

Comments
 (0)