From 17db9e1237e2f83ca149575330521c2e24e97eee Mon Sep 17 00:00:00 2001 From: Aharon Hillel Date: Tue, 20 Dec 2011 09:09:05 +0000 Subject: [PATCH] exactness: Fixed total-tests count Signed-off-by: Aharon Hillel SVN revision: 66376 --- src/bin/tsuite.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bin/tsuite.c b/src/bin/tsuite.c index 57eae6d..410d42f 100644 --- a/src/bin/tsuite.c +++ b/src/bin/tsuite.c @@ -179,6 +179,8 @@ _set_test(Eina_List *list, char *n, Eina_Bool t) Test_Item *item = eina_list_search_unsorted(list, test_name_cmp, n); if (item) item->test = t; + else + printf("Unknown test name: %s\n", n); return item; } @@ -870,15 +872,17 @@ elm_main(int argc, char **argv) tests = _add_test(tests, "test_win_state2", test_win_state2, test_all); - /* Set tests from command line */ - for(i = first_arg; i < argc ; i++) - _set_test(tests, argv[i], EINA_TRUE); - Eina_List *l; Test_Item *item; int n_tests = 0; int n_total = 0; int n_no_rec_file = 0; + + /* Set tests from command line */ + for(i = first_arg; i < argc ; i++) + if (_set_test(tests, argv[i], EINA_TRUE) == NULL) + n_total++; /* Count unknown test (wrong spelling from command line) */ + EINA_LIST_FOREACH(tests, l, item) if (item->test) { /* Run test and count tests committed */