Messages in this thread Patch in this message |  | | From | Sasha Levin <> | Subject | [PATCH 04/11] liblockdep: fix AA test | Date | Wed, 6 Feb 2013 17:11:27 -0500 |
| |
We were accidently unlocking the dummy mutex in the test, which meant that we were testing unlock balance instead of AA deadlock.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com> --- tools/lib/lockdep/tests/AA.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/lockdep/tests/AA.c b/tools/lib/lockdep/tests/AA.c index a443e65..0f782ff 100644 --- a/tools/lib/lockdep/tests/AA.c +++ b/tools/lib/lockdep/tests/AA.c @@ -8,6 +8,6 @@ void main(void) pthread_mutex_init(&b, NULL); pthread_mutex_lock(&a); - pthread_mutex_unlock(&b); + pthread_mutex_lock(&b); pthread_mutex_lock(&a); } -- 1.8.1.2
|  |