Skip to content

Commit 4098ed5

Browse files
authored
Merge pull request #1849 from smowton/smowton/cleanup/java-main-function-types
Cleanup tests with anomalous main functions
2 parents fe775f3 + a6fd729 commit 4098ed5

File tree

102 files changed

+101
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+101
-107
lines changed

regression/cbmc-java/ArithmeticException6/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
ArithmeticExceptionTest.class
3-
--java-throw-runtime-exceptions
3+
--java-throw-runtime-exceptions --function ArithmeticExceptionTest.main
44
^EXIT=10$
55
^SIGNAL=0$
66
^.*assertion at file ArithmeticExceptionTest.java line 7 function.*: FAILURE$

regression/cbmc-java/LocalVarTable5/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.class
3-
--show-goto-functions
3+
--show-goto-functions --function test.main
44
dead anonlocal::1i
55
dead anonlocal::2i
66
dead anonlocal::3a
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
CORE
22
Test.class
3-
3+
--function Test.main
44
^VERIFICATION SUCCESSFUL$
5-
0 Bytes
Binary file not shown.
8 Bytes
Binary file not shown.

regression/cbmc-java/NondetInit3/Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public static void main(Subclass nondetInput) {
1414
// The condition enforced by cproverNondetInitialize should hold
1515
// even though the parameter is a subtype of Test, not directly an
1616
// instance of Test itself.
17-
assert nondetInput.arr.length == 1;
17+
if(nondetInput != null)
18+
assert nondetInput.arr.length == 1;
1819
}
1920

2021
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
CORE
22
Test.class
3-
3+
--function Test.main
44
^VERIFICATION SUCCESSFUL$
5-

regression/cbmc-java/VarLengthArrayTrace1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
VarLengthArrayTrace1.class
3-
--trace
3+
--trace --function VarLengthArrayTrace1.main
44
^EXIT=10$
55
^SIGNAL=0$
66
dynamic_3_array\[1.*\]=10

regression/cbmc-java/arrayread1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
arrayread1.class
3-
--unwind 3 --no-propagation
3+
--unwind 3 --no-propagation --function arrayread1.main
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/cbmc-java/cast_null1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.class
3-
3+
--function test.main
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

0 commit comments

Comments
 (0)