summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-09 13:31:45 -0400
committerChris Michael <cp.michael@samsung.com>2018-07-09 13:31:45 -0400
commitb14ef34ab8791a0a730b8d4fea6bc84cdee1ec9c (patch)
treeae0f87ef65f5208355de2fe14fe44f7b3da53cb8
parent6ee58996e141bc061bb49c4d7aad0cb8b5869563 (diff)
tests/eina: make inclusion for define explicit and more compatible
Summary: signal.h is not included with all build options somehow, making this a bit unreliable. also check for define existence for random platforms which don't define this symbol Reviewers: devilhorns, ManMower Reviewed By: ManMower Subscribers: ManMower, cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6535
-rw-r--r--src/tests/eina/eina_test_debug.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/eina/eina_test_debug.c b/src/tests/eina/eina_test_debug.c
index 3d2a7f59d8..ef524f7094 100644
--- a/src/tests/eina/eina_test_debug.c
+++ b/src/tests/eina/eina_test_debug.c
@@ -5,8 +5,10 @@
5#include <Eina.h> 5#include <Eina.h>
6 6
7#include "eina_suite.h" 7#include "eina_suite.h"
8
9#ifndef _WIN32 8#ifndef _WIN32
9# include <signal.h>
10#endif
11#ifdef SIGPROF
10EFL_START_TEST(eina_test_debug_sighandler) 12EFL_START_TEST(eina_test_debug_sighandler)
11{ 13{
12 /* ensure this doesn't crash */ 14 /* ensure this doesn't crash */
@@ -18,7 +20,7 @@ EFL_END_TEST
18void 20void
19eina_test_debug(TCase *tc) 21eina_test_debug(TCase *tc)
20{ 22{
21#ifndef _WIN32 23#ifdef SIGPROF
22 if (!eina_streq(getenv("CK_FORK"), "no")) 24 if (!eina_streq(getenv("CK_FORK"), "no"))
23 tcase_add_test_raise_signal(tc, eina_test_debug_sighandler, SIGPROF); 25 tcase_add_test_raise_signal(tc, eina_test_debug_sighandler, SIGPROF);
24#endif 26#endif