summaryrefslogtreecommitdiff
path: root/Test/lock
diff options
context:
space:
mode:
authorGravatar Dan Liew <daniel.liew@imperial.ac.uk>2014-05-07 19:10:57 +0100
committerGravatar Dan Liew <daniel.liew@imperial.ac.uk>2014-05-07 19:10:57 +0100
commit98407f4fc7af2fbe5a54488dfdfc3973b72d2fd3 (patch)
tree025d7aa24e933720ffbc3f98bb841f62ac51aa8c /Test/lock
parent95d752d7480ecddb727df1cc3613fefa4363b960 (diff)
Enable "SLAM example" lit tests.
Diffstat (limited to 'Test/lock')
-rw-r--r--Test/lock/Answer6
-rw-r--r--Test/lock/Lock.bpl2
-rw-r--r--Test/lock/Lock.bpl.expect2
-rw-r--r--Test/lock/LockIncorrect.bpl2
-rw-r--r--Test/lock/LockIncorrect.bpl.expect6
5 files changed, 15 insertions, 3 deletions
diff --git a/Test/lock/Answer b/Test/lock/Answer
index bcfc9f1c..a5b63e44 100644
--- a/Test/lock/Answer
+++ b/Test/lock/Answer
@@ -1,8 +1,8 @@
Boogie program verifier finished with 3 verified, 0 errors
-LockIncorrect.bpl(17,3): Error BP5001: This assertion might not hold.
+LockIncorrect.bpl(19,3): Error BP5001: This assertion might not hold.
Execution trace:
- LockIncorrect.bpl(9,1): start
- LockIncorrect.bpl(14,1): LoopHead
+ LockIncorrect.bpl(11,1): start
+ LockIncorrect.bpl(16,1): LoopHead
Boogie program verifier finished with 0 verified, 1 error
diff --git a/Test/lock/Lock.bpl b/Test/lock/Lock.bpl
index ed24a710..ab7f20fe 100644
--- a/Test/lock/Lock.bpl
+++ b/Test/lock/Lock.bpl
@@ -1,3 +1,5 @@
+// RUN: %boogie %s > %t
+// RUN: %diff %s.expect %t
procedure LockingExample();
implementation LockingExample()
diff --git a/Test/lock/Lock.bpl.expect b/Test/lock/Lock.bpl.expect
new file mode 100644
index 00000000..a9949f2e
--- /dev/null
+++ b/Test/lock/Lock.bpl.expect
@@ -0,0 +1,2 @@
+
+Boogie program verifier finished with 3 verified, 0 errors
diff --git a/Test/lock/LockIncorrect.bpl b/Test/lock/LockIncorrect.bpl
index 776f8af6..cffcc256 100644
--- a/Test/lock/LockIncorrect.bpl
+++ b/Test/lock/LockIncorrect.bpl
@@ -1,3 +1,5 @@
+// RUN: %boogie %s > %t
+// RUN: %diff %s.expect %t
procedure LockingExample();
implementation LockingExample()
diff --git a/Test/lock/LockIncorrect.bpl.expect b/Test/lock/LockIncorrect.bpl.expect
new file mode 100644
index 00000000..a320da62
--- /dev/null
+++ b/Test/lock/LockIncorrect.bpl.expect
@@ -0,0 +1,6 @@
+LockIncorrect.bpl(19,3): Error BP5001: This assertion might not hold.
+Execution trace:
+ LockIncorrect.bpl(11,1): start
+ LockIncorrect.bpl(16,1): LoopHead
+
+Boogie program verifier finished with 0 verified, 1 error