OSDN Git Service

tests: avoid nasty FP-causing race condition
authorJim Meyering <meyering@redhat.com>
Wed, 18 May 2011 14:46:38 +0000 (16:46 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 18 May 2011 14:58:06 +0000 (16:58 +0200)
commit6cc393cc5471a086ad30e0943604261f2678970a
treec3b42ed67de43509b13466e3577340641d4dcb9f
parent37bb8d82458ae01779c81c12e88c0dbb79f5c055
tests: avoid nasty FP-causing race condition

* tests/t9040-many-partitions.sh: Remove all partitions before
exiting -- otherwise, the rmmod-prompted removal of those many
partitions would continue long after rmmod completion and the
release of the scsi_debug lock, and thus partition-device removals
provoked by this test would cause failure in the subsequent test,
e.g., when the devices for partitions 14,15,16 have just been
successfully created (verified that they exist), yet the next
step -- to create a file system on one of them -- fails or is
erroneously skipped because the device has been removed asynchronously.
tests/t9040-many-partitions.sh