diff options
author | Ben Pfaff <blp@ovn.org> | 2017-12-05 09:30:26 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-12-24 11:47:33 -0800 |
commit | 1e0b7e94ecf35e06037b00099fa2f23e13954b99 (patch) | |
tree | 92dec31f7234a1c25e61d12c79f6179ad747098c /tests/ovsdb-log.at | |
parent | c7007aa7150b15b610ec0c8c737c2267788fa0ad (diff) | |
download | openvswitch-1e0b7e94ecf35e06037b00099fa2f23e13954b99.tar.gz |
log: Add new open mode OVSDB_LOG_CREATE_EXCL.
Until now, OVSDB_LOG_CREATE implied EXCL, but this commit breaks them
apart.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'tests/ovsdb-log.at')
-rw-r--r-- | tests/ovsdb-log.at | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/ovsdb-log.at b/tests/ovsdb-log.at index 29c0c5913..826e334ef 100644 --- a/tests/ovsdb-log.at +++ b/tests/ovsdb-log.at @@ -46,9 +46,14 @@ AT_CHECK( file: read: {"x":1} ]], [ignore]) AT_CHECK( - [test-ovsdb log-io file create read], [1], + [test-ovsdb log-io file create-excl read], [1], [], [test-ovsdb: I/O error: file: create failed (File exists) ]) +AT_CHECK( + [test-ovsdb log-io file create read], [0], + [file: open successful +file: read: {"x":1} +]) AT_CHECK([test -f .file.~lock~]) AT_CLEANUP |