summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_suite.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-10 13:57:40 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-07-10 13:57:40 -0400
commitf5c03fe1947653cbff5a9d5a60aa2314ce471b9c (patch)
tree7f9903558448fdfeb08e8725f35e76961e1217fa /src/tests/elementary/elm_suite.c
parent65c47edc3dafee089507198f395a973767878c19 (diff)
tests/elm: fail tests if unexpected warnings or errors occur
Summary: warnings and errors should never occur in unit tests unless they are intentionally triggered. this will help catch regressions Depends on D9256 Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9257
Diffstat (limited to 'src/tests/elementary/elm_suite.c')
-rw-r--r--src/tests/elementary/elm_suite.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_suite.c b/src/tests/elementary/elm_suite.c
index a1dc5de..87fac6e 100644
--- a/src/tests/elementary/elm_suite.c
+++ b/src/tests/elementary/elm_suite.c
@@ -7,6 +7,8 @@
7#include "../efl_check.h" 7#include "../efl_check.h"
8#include "suite_helpers.h" 8#include "suite_helpers.h"
9 9
10extern Eina_Bool abort_on_warnings;
11
10static const Efl_Test_Case etc[] = { 12static const Efl_Test_Case etc[] = {
11 { "elm_config", elm_test_config }, 13 { "elm_config", elm_test_config },
12 { "elm_check", elm_test_check }, 14 { "elm_check", elm_test_check },
@@ -96,6 +98,7 @@ main(int argc, char **argv)
96 return 0; 98 return 0;
97 99
98 failed_count = suite_setup(EINA_TRUE); 100 failed_count = suite_setup(EINA_TRUE);
101 abort_on_warnings = EINA_TRUE;
99 102
100 failed_count += _efl_suite_build_and_run(argc - 1, (const char **)argv + 1, 103 failed_count += _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
101 "Elementary", etc, SUITE_INIT_FN(elm2), SUITE_SHUTDOWN_FN(elm)); 104 "Elementary", etc, SUITE_INIT_FN(elm2), SUITE_SHUTDOWN_FN(elm));