From 54dcab5fda77656b1ae7b1532af3dfe2d91f33ea Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 3 Feb 2016 16:38:29 +0000 Subject: [PATCH] Eo tests: remove hack to prevent eo_init()/shutdown() cycles. We can now remove it thanks to the previous commit. --- src/tests/eo/suite/eo_suite.c | 4 ---- src/tests/eo/suite/eo_test_init.c | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tests/eo/suite/eo_suite.c b/src/tests/eo/suite/eo_suite.c index 0441ceb9b9..7b5702343e 100644 --- a/src/tests/eo/suite/eo_suite.c +++ b/src/tests/eo/suite/eo_suite.c @@ -80,8 +80,6 @@ main(int argc, char **argv) Suite *s; SRunner *sr; int i, failed_count; - eo_init(); - setenv("CK_FORK", "no", 0); for (i = 1; i < argc; i++) if ((strcmp(argv[i], "-h") == 0) || @@ -110,7 +108,5 @@ main(int argc, char **argv) failed_count = srunner_ntests_failed(sr); srunner_free(sr); - eo_shutdown(); - return (failed_count == 0) ? 0 : 255; } diff --git a/src/tests/eo/suite/eo_test_init.c b/src/tests/eo/suite/eo_test_init.c index 3bf4b49cb7..de4c55d4a5 100644 --- a/src/tests/eo/suite/eo_test_init.c +++ b/src/tests/eo/suite/eo_test_init.c @@ -10,9 +10,9 @@ START_TEST(eo_simple) { fail_if(!eo_init()); /* one init by test suite */ - fail_if(eo_init() != 1); - fail_if(eo_shutdown() != 1); + fail_if(!eo_init()); fail_if(!eo_shutdown()); + fail_if(eo_shutdown()); } END_TEST