blob: 011a89c65f90d9bc411e03ccb358d5ccfe71a468 [file] [log] [blame]
Neels Hofmeyr936a81e2017-09-14 01:31:41 +02001creating files
2launch a program that locks a given file, it will create $dir/lock_test
3wait until this lock_test lock file was created by program
4expecting the lock file to reflect "long name"
Neels Hofmeyra6278b72017-05-10 13:46:11 +02005launched first, locked by: 'long name'
Neels Hofmeyr936a81e2017-09-14 01:31:41 +02006launching second program, should find the lock intact and wait
Neels Hofmeyra6278b72017-05-10 13:46:11 +02007launched second, locked by: 'long name'
Neels Hofmeyr936a81e2017-09-14 01:31:41 +02008drop the first lock, $f1 removal signals the first process to stop locking
9wait for first program to carry out the lock release
10now expecting second program to lock
Neels Hofmeyra6278b72017-05-10 13:46:11 +020011waited, locked by: 'shorter'
Neels Hofmeyr936a81e2017-09-14 01:31:41 +020012release the second program also
13expecting the lock to be gone
Neels Hofmeyra6278b72017-05-10 13:46:11 +020014waited more, locked by: ''