Skip to content

Commit

Permalink
CN: Fix CI
Browse files Browse the repository at this point in the history
The return code was not being propagated out of the main function
correctly. This should signal error correctly now.
  • Loading branch information
dc-mak committed Dec 11, 2024
1 parent 3d43d4f commit 98e88ac
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/cn/duplicate_datatype_var.error.c.verify
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
return code: 1
tests/cn/duplicate_datatype_var.error.c:5:22: error: Re-using member name x within datatype definition.
tests/cn/duplicate_datatype_var.error.c:5:22: error: Re-using member name x within datatype definition (SMT limitation).
Single { integer x }
^
3 changes: 3 additions & 0 deletions tests/cn/has_alloc_id_ptr_eq.error.c.verify
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
return code: 1
tests/cn/has_alloc_id_ptr_eq.error.c:10:12: warning: Cannot rule out ambiguous pointer equality case (addresses equal, but provenances differ)
return p == q;
~~^~~~
[1/1]: f -- fail
tests/cn/has_alloc_id_ptr_eq.error.c:10:5: error: Unprovable constraint
return p == q;
Expand Down
3 changes: 3 additions & 0 deletions tests/cn/has_alloc_id_ptr_eq2.error.c.verify
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
return code: 1
tests/cn/has_alloc_id_ptr_eq2.error.c:10:12: warning: Cannot rule out ambiguous pointer equality case (addresses equal, but provenances differ)
return p == q;
~~^~~~
[1/1]: f -- fail
tests/cn/has_alloc_id_ptr_eq2.error.c:10:5: error: Unprovable constraint
return p == q;
Expand Down
3 changes: 3 additions & 0 deletions tests/cn/unconstrained_ptr_eq.error.c.verify
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
return code: 1
tests/cn/unconstrained_ptr_eq.error.c:7:12: warning: Cannot rule out ambiguous pointer equality case (addresses equal, but provenances differ)
return p == q;
~~^~~~
[1/1]: f -- fail
tests/cn/unconstrained_ptr_eq.error.c:7:5: error: Unprovable constraint
return p == q;
Expand Down
3 changes: 3 additions & 0 deletions tests/cn/unconstrained_ptr_eq2.error.c.verify
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
return code: 1
tests/cn/unconstrained_ptr_eq2.error.c:7:12: warning: Cannot rule out ambiguous pointer equality case (addresses equal, but provenances differ)
return p == q;
~~^~~~
[1/1]: f -- fail
tests/cn/unconstrained_ptr_eq2.error.c:7:5: error: Unprovable constraint
return p == q;
Expand Down
3 changes: 1 addition & 2 deletions tests/diff-prog.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,4 @@ def main(args):

# parse args and call func (as set using set_defaults)
args = parser.parse_args()
args.func(args)

exit(args.func(args))

0 comments on commit 98e88ac

Please sign in to comment.