diff --git a/kern/test/synchprobs.c b/kern/test/synchprobs.c index 9a13b31..cb3b21e 100644 --- a/kern/test/synchprobs.c +++ b/kern/test/synchprobs.c @@ -685,7 +685,7 @@ int stoplight(int nargs, char **args) { passed += car_locations[i] == PASSED_CAR ? 1 : 0; } if ((test_status == SUCCESS) && - (!failif((passed != NCARS), "failed: not enough cars")) && + (!(failif((passed != NCARS), "failed: not enough cars"))) && (!(failif((all_quadrant != required_quadrant), "failed: didn't do the right turns"))) && (!(failif((max_car_count <= 1), "failed: no concurrency achieved")))) {};