Skip to content

Commit

Permalink
Add test for solver crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
atomb committed Dec 5, 2023
1 parent ccebad6 commit c0a1a24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Test/prover/exitcode.bpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// RUN: %parallel-boogie /proverOpt:PROVER_PATH=/usr/bin/false "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

procedure P(x: int, y: int) {
assert x*y == y*x;
}
6 changes: 6 additions & 0 deletions Test/prover/exitcode.bpl.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Prover error: Solver exited with code 1

Advisory: P SKIPPED due to I/O exception: Broken pipe
exitcode.bpl(4,11): Verification encountered solver exception (P)

Boogie program verifier finished with 0 verified, 0 errors, 1 solver exceptions

0 comments on commit c0a1a24

Please sign in to comment.