summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2000-02-08 05:28:12 +0000
committerTom Yu <tlyu@mit.edu>2000-02-08 05:28:12 +0000
commit3fbf0ebdc509c29e221f6ba2f6db9c8cdb7eaf88 (patch)
treed3f7ea024ca4dfabcaa543c3fcb5bd18eebd2b40 /src/lib
parentb83aac7742a8ef28c7520c3d6cd33faa7f98c708 (diff)
downloadkrb5-3fbf0ebdc509c29e221f6ba2f6db9c8cdb7eaf88.tar.gz
krb5-3fbf0ebdc509c29e221f6ba2f6db9c8cdb7eaf88.tar.xz
krb5-3fbf0ebdc509c29e221f6ba2f6db9c8cdb7eaf88.zip
* 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12025 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-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]]]