summaryrefslogtreecommitdiff
path: root/src/tests/emile
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/emile
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/emile')
-rw-r--r--src/tests/emile/emile_suite.h2
-rw-r--r--src/tests/emile/emile_test_base.c4
-rw-r--r--src/tests/emile/emile_test_base64.c8
3 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/emile/emile_suite.h b/src/tests/emile/emile_suite.h
index 9e940d107a..6f1268ec35 100644
--- a/src/tests/emile/emile_suite.h
+++ b/src/tests/emile/emile_suite.h
@@ -2,7 +2,7 @@
2#define _EMILE_SUITE_H 2#define _EMILE_SUITE_H
3 3
4#include <check.h> 4#include <check.h>
5 5#include "../efl_check.h"
6void emile_test_base(TCase *tc); 6void emile_test_base(TCase *tc);
7void emile_test_base64(TCase *tc); 7void emile_test_base64(TCase *tc);
8 8
diff --git a/src/tests/emile/emile_test_base.c b/src/tests/emile/emile_test_base.c
index d4514d1ea8..c76d7ab87a 100644
--- a/src/tests/emile/emile_test_base.c
+++ b/src/tests/emile/emile_test_base.c
@@ -7,12 +7,12 @@
7 7
8#include "emile_suite.h" 8#include "emile_suite.h"
9 9
10START_TEST(emile_test_init) 10EFL_START_TEST(emile_test_init)
11{ 11{
12 fail_if(emile_init() <= 0); 12 fail_if(emile_init() <= 0);
13 fail_if(emile_shutdown() != 0); 13 fail_if(emile_shutdown() != 0);
14} 14}
15END_TEST 15EFL_END_TEST
16 16
17void emile_test_base(TCase *tc) 17void emile_test_base(TCase *tc)
18{ 18{
diff --git a/src/tests/emile/emile_test_base64.c b/src/tests/emile/emile_test_base64.c
index ca035766c8..6ddbd82849 100644
--- a/src/tests/emile/emile_test_base64.c
+++ b/src/tests/emile/emile_test_base64.c
@@ -30,7 +30,7 @@ static const struct {
30 { "abc123!?$*&()'-=@~", "YWJjMTIzIT8kKiYoKSctPUB+", "YWJjMTIzIT8kKiYoKSctPUB-", 18 } 30 { "abc123!?$*&()'-=@~", "YWJjMTIzIT8kKiYoKSctPUB+", "YWJjMTIzIT8kKiYoKSctPUB-", 18 }
31}; 31};
32 32
33START_TEST(emile_test_base64_normal) 33EFL_START_TEST(emile_test_base64_normal)
34{ 34{
35 Eina_Binbuf *buffer, *decoded; 35 Eina_Binbuf *buffer, *decoded;
36 Eina_Strbuf *str, *encoded; 36 Eina_Strbuf *str, *encoded;
@@ -75,9 +75,9 @@ START_TEST(emile_test_base64_normal)
75 eina_strbuf_reset(str); 75 eina_strbuf_reset(str);
76 fail_if(decoded); 76 fail_if(decoded);
77} 77}
78END_TEST 78EFL_END_TEST
79 79
80START_TEST(emile_test_base64_url) 80EFL_START_TEST(emile_test_base64_url)
81{ 81{
82 Eina_Binbuf *buffer, *decoded; 82 Eina_Binbuf *buffer, *decoded;
83 Eina_Strbuf *str, *encoded; 83 Eina_Strbuf *str, *encoded;
@@ -114,7 +114,7 @@ START_TEST(emile_test_base64_url)
114 decoded = emile_base64url_decode(str); 114 decoded = emile_base64url_decode(str);
115 fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3)); 115 fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3));
116} 116}
117END_TEST 117EFL_END_TEST
118 118
119void 119void
120emile_test_base64(TCase *tc) 120emile_test_base64(TCase *tc)