tests: Fix and extend read-only records test
authorMartin Schwenke <martin@meltin.net>
Thu, 27 Mar 2014 05:26:21 +0000 (16:26 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 31 Mar 2014 02:41:51 +0000 (13:41 +1100)
commitfae66ccd1c5c6ea59027f40a1c835731da42a512
treee62fb1302b63290467c86d478e1d15aff34ba6b7
parent12002bc837b7e3e2dc9c347988e021cedb6286e9
tests: Fix and extend read-only records test

This test currently counts the number of read-only-enabled databases
and expects there to only be 1.  It fails when there are existing
databases with read-only already enabled.  Instead, check just the
test database.

Clean up the test by adding some functions to check for precisely the
read-only flags that should be set on a node after each operation.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit aa7cd51bbc438555552584a7d71f5bae6909603f)
tests/simple/75_readonly_records_basic.sh