projects
/
platform
/
core
/
system
/
faultd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d82e97
)
FIX: build should fail if any of the tests fail, not only last.
22/138922/4
author
Konrad Kuchciak
<k.kuchciak@samsung.com>
Fri, 14 Jul 2017 07:36:02 +0000
(09:36 +0200)
committer
Konrad Kuchciak
<k.kuchciak@samsung.com>
Wed, 19 Jul 2017 07:29:43 +0000
(09:29 +0200)
Change-Id: Ia7265b29bce8bc1d99837ba0242c081208e2c7f9
tests/unit/runner.c
patch
|
blob
|
history
diff --git
a/tests/unit/runner.c
b/tests/unit/runner.c
index f847957b01832af2343d5c9d2645d6e6cad69c74..d541245d8ef81dcc04f7e44aa76c78f84484cb14 100644
(file)
--- a/
tests/unit/runner.c
+++ b/
tests/unit/runner.c
@@
-26,11
+26,16
@@
int fdtf_run_all_test_groups()
{
struct fdtf_test_group *tg;
int ret = 0;
+ int fail = 0;
list_for_each_entry(tg, &test_groups, node)
- ret = fdtf_run_test_group(tg);
+ if((ret = fdtf_run_test_group(tg)) != 0)
+ fail = ret;
- return ret;
+ if (fail != 0)
+ return fail;
+
+ return 0;
}
int main(int argc, char **argv)
@@
-40,6
+45,5
@@
int main(int argc, char **argv)
* Add here some more logic to allow to run
* only subset of tests
*/
- printf("dupa\n");
return fdtf_run_all_test_groups();
}