- 05 Mar, 2014 3 commits
-
-
Hrvoje Ribicic authored
To compensate for the cases where a QA test is supposed to block when a lock is present, add an additional option showing whether blocking is supposed to happen or not. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Hrvoje Ribicic authored
This patch adds threading to the RunWithTests function, allowing one thread to execute the QA test, and the other to monitor if it is being blocked by locks set up during the test. If it is, terminate the blocking job, and let the QA continue, reporting the test failure at the very end. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Hrvoje Ribicic authored
This patch adds a QA utility function that acquires a set of locks, and attempts to run a given function with the locks in place. Should the given function block, this function does not detect this - later patches will address the issue. An example of its use is provided by having the move-instance test modified to use it. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-