Fix test_event

If the logged line is found, it is not an error, if it is not,
it is.
This commit is contained in:
Johan Wikman 2018-06-20 13:01:20 +03:00
parent 47b2036afa
commit 68e514f08b

View File

@ -483,7 +483,7 @@ int test_logging()
// Short sleep to increase the likelyhood that the logged message ends
// ends up where we expect it to be.
sleep(1);
sleep(2);
bool found = false;
@ -502,7 +502,7 @@ int test_logging()
}
}
return found ? 1 : 0;
return found ? 0 : 1;
}
}