diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-10-04 23:51:45 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-10-04 23:55:35 +0200 |
commit | bdf7026e9557349cd3eeb291c01655d5f2a55db8 (patch) | |
tree | 10d269fed663e99d659c34e2f8e89fe5b3f55ecd /src/test/test-engine.c | |
parent | 2355af60dc0c0ec2b7fbe69f15a77d980b017b3f (diff) |
test: only use assert_se
The asserts used in the tests should never be allowed to be
optimized away
Diffstat (limited to 'src/test/test-engine.c')
-rw-r--r-- | src/test/test-engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-engine.c b/src/test/test-engine.c index 6e39a586c0..1b71416a04 100644 --- a/src/test/test-engine.c +++ b/src/test/test-engine.c @@ -43,7 +43,7 @@ int main(int argc, char *argv[]) { printf("Skipping test: manager_new: %s", strerror(-r)); return EXIT_TEST_SKIP; } - assert(r >= 0); + assert_se(r >= 0); assert_se(manager_startup(m, serial, fdset) >= 0); printf("Load1:\n"); @@ -56,7 +56,7 @@ int main(int argc, char *argv[]) { r = manager_add_job(m, JOB_START, c, JOB_REPLACE, false, &err, &j); if (sd_bus_error_is_set(&err)) log_error("error: %s: %s", err.name, err.message); - assert(r == 0); + assert_se(r == 0); manager_dump_jobs(m, stdout, "\t"); printf("Load2:\n"); |