summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/kadm5/unit-test/ChangeLog10
-rw-r--r--src/lib/kadm5/unit-test/api.1/lock.exp2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/kadm5/unit-test/ChangeLog b/src/lib/kadm5/unit-test/ChangeLog
index f8eb89a4e..b8e4b7109 100644
--- a/src/lib/kadm5/unit-test/ChangeLog
+++ b/src/lib/kadm5/unit-test/ChangeLog
@@ -1,3 +1,13 @@
+2000-02-08 Tom Yu <tlyu@mit.edu>
+
+ * api.1/lock.exp: Since a "wait" directive to the command list of
+ the lock_test procedures does not wait for any synchronization,
+ change lock9 to acquire and release a lock before the "wait"
+ directive in order to avoid a race condition where lock9 spawns
+ the ./lock-test but the program has not opened the database prior
+ to lock9_1 acquiring a permanent lock. This was causing
+ difficult-to-reproduce failures.
+
2000-02-07 Tom Yu <tlyu@mit.edu>
* lib/lib.t: Call kinit and kdestroy with -5 flag to accomodate
diff --git a/src/lib/kadm5/unit-test/api.1/lock.exp b/src/lib/kadm5/unit-test/api.1/lock.exp
index f9a302027..b6126ba97 100644
--- a/src/lib/kadm5/unit-test/api.1/lock.exp
+++ b/src/lib/kadm5/unit-test/api.1/lock.exp
@@ -194,6 +194,8 @@ lock_test 8.1 [list \
eval lock_test_continue $lock8
set lock9 [lock_test_start 9 [list \
+ [list exclusive exclusive] \
+ [list release released] \
[list wait ""] \
[list exclusive "database lock file missing while getting exclusive"] \
[list eof 0]]]