diff --git a/kern/test/synchtest.c b/kern/test/synchtest.c index b08eca7..b2c72d6 100644 --- a/kern/test/synchtest.c +++ b/kern/test/synchtest.c @@ -395,7 +395,7 @@ sleepthread(void *junk1, unsigned long junk2) V(gatesem); random_yielder(4); spinlock_acquire(&status_lock); - testval1++; + testval4++; spinlock_release(&status_lock); cv_wait(testcvs[i], testlocks[i]); random_yielder(4);