summaryrefslogtreecommitdiff
path: root/src/tests/efreet
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-03-26 14:19:28 -0400
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-05 11:10:25 +0200
commitadc601aca2f0a16784af36bf6ae7dd20eeb33202 (patch)
treecac0a78fa40e88abb028b06d985c28bf89da269c /src/tests/efreet
parentb340b5e49ccae48a7d5adbbfa301af39e232348c (diff)
tests: add instrumentation to existing tests to find slow tests
efl_check.h must be included and the EFL_START/END_TEST macros must be used in place of normal START/END_TEST macros timing is enabled when TIMING_ENABLED is set https://phab.enlightenment.org/w/improve_tests/ Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Diffstat (limited to 'src/tests/efreet')
-rw-r--r--src/tests/efreet/efreet_suite.h2
-rw-r--r--src/tests/efreet/efreet_test_efreet.c4
-rw-r--r--src/tests/efreet/efreet_test_efreet_cache.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/efreet/efreet_suite.h b/src/tests/efreet/efreet_suite.h
index bfb47f9..3cc5263 100644
--- a/src/tests/efreet/efreet_suite.h
+++ b/src/tests/efreet/efreet_suite.h
@@ -2,7 +2,7 @@
2#define _EFREET_SUITE_H 2#define _EFREET_SUITE_H
3 3
4#include <check.h> 4#include <check.h>
5 5#include "../efl_check.h"
6void efreet_test_efreet(TCase *tc); 6void efreet_test_efreet(TCase *tc);
7void efreet_test_efreet_cache(TCase *tc); 7void efreet_test_efreet_cache(TCase *tc);
8 8
diff --git a/src/tests/efreet/efreet_test_efreet.c b/src/tests/efreet/efreet_test_efreet.c
index d35ec9e..2a74309 100644
--- a/src/tests/efreet/efreet_test_efreet.c
+++ b/src/tests/efreet/efreet_test_efreet.c
@@ -7,7 +7,7 @@
7#include "efreet_suite.h" 7#include "efreet_suite.h"
8 8
9 9
10START_TEST(efreet_test_efreet_init) 10EFL_START_TEST(efreet_test_efreet_init)
11{ 11{
12 int ret; 12 int ret;
13 13
@@ -17,7 +17,7 @@ START_TEST(efreet_test_efreet_init)
17 ret = efreet_shutdown(); 17 ret = efreet_shutdown();
18 fail_if(ret != 0); 18 fail_if(ret != 0);
19} 19}
20END_TEST 20EFL_END_TEST
21 21
22void efreet_test_efreet(TCase *tc) 22void efreet_test_efreet(TCase *tc)
23{ 23{
diff --git a/src/tests/efreet/efreet_test_efreet_cache.c b/src/tests/efreet/efreet_test_efreet_cache.c
index 2f8972d..afb1549 100644
--- a/src/tests/efreet/efreet_test_efreet_cache.c
+++ b/src/tests/efreet/efreet_test_efreet_cache.c
@@ -7,7 +7,7 @@
7#include "efreet_suite.h" 7#include "efreet_suite.h"
8 8
9 9
10START_TEST(efreet_test_efreet_cache_init) 10EFL_START_TEST(efreet_test_efreet_cache_init)
11{ 11{
12 int ret; 12 int ret;
13 13
@@ -17,7 +17,7 @@ START_TEST(efreet_test_efreet_cache_init)
17 ret = efreet_shutdown(); 17 ret = efreet_shutdown();
18 fail_if(ret != 0); 18 fail_if(ret != 0);
19} 19}
20END_TEST 20EFL_END_TEST
21 21
22void efreet_test_efreet_cache(TCase *tc) 22void efreet_test_efreet_cache(TCase *tc)
23{ 23{