From: Tom Yu Date: Tue, 8 Feb 2000 05:28:12 +0000 (+0000) Subject: * api.1/lock.exp: Since a "wait" directive to the command list of X-Git-Tag: krb5-1.2-beta1~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3fbf0ebdc509c29e221f6ba2f6db9c8cdb7eaf88;p=krb5.git * 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 --- 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 + + * 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 * 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]]]