summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-12-11 12:58:30 -0800
committerBen Pfaff <blp@nicira.com>2009-12-11 13:26:08 -0800
commitee9e92d81a85344723be3dea504af9b584c81cd3 (patch)
tree8b138b68b05712adaac4ece9486f2199ebc47b1a /tests
parent577aebdfecb001155242aa9831613310f87ed13a (diff)
downloadopenvswitch-ee9e92d81a85344723be3dea504af9b584c81cd3.tar.gz
ovsdb: Cleanly abort delete operations.
Diffstat (limited to 'tests')
-rw-r--r--tests/ovsdb-transaction.at26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ovsdb-transaction.at b/tests/ovsdb-transaction.at
index f0c29d43c..8abc5d3fe 100644
--- a/tests/ovsdb-transaction.at
+++ b/tests/ovsdb-transaction.at
@@ -382,3 +382,29 @@ print:
2: i=2, j=3],
[transaction])
+OVSDB_CHECK_POSITIVE([deletes are aborted cleanly],
+ [[transact \
+ '["insert", "1", "2", "3"]' \
+ '["commit"]' \
+ '["print"]' \
+ '["delete", "1"]' \
+ '["abort"]' \
+ '["print"]' \
+ '["delete", "1"]' \
+ '["abort"]' \
+ '["print"]']],
+ [dnl
+insert 1 2 3:
+commit:
+print:
+1: i=2, j=3
+delete 1:
+abort:
+print:
+1: i=2, j=3
+delete 1:
+abort:
+print:
+1: i=2, j=3],
+ [transaction])
+