libvirt/src/test
Laine Stump f21d49144f test: fix potential lock corruption in test driver
In some error situations, the function testDomainRestoreFlags() could
unlock the test driver mutex without first locking it. This patch
moves the lock operation earlier, so that it occurs before any
potential jump down to the unlock call.

I found this problem while auditing the test driver lock usage to
determine the cause of a hang while running the following test:

  cd tests; while true; do printf x; ./undefine; done

This patch *does not* solve that problem, but we now understand its
actual source, and danpb is working on a patch.
2011-12-08 16:20:31 -05:00
..
test_driver.c test: fix potential lock corruption in test driver 2011-12-08 16:20:31 -05:00
test_driver.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00