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)
downloadefl-b14ef34ab8791a0a730b8d4fea6bc84cdee1ec9c.tar.gz
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 @@
#include <Eina.h>
#include "eina_suite.h"
-
#ifndef _WIN32
+# include <signal.h>
+#endif
+#ifdef SIGPROF
EFL_START_TEST(eina_test_debug_sighandler)
{
/* ensure this doesn't crash */
@@ -18,7 +20,7 @@ EFL_END_TEST
void
eina_test_debug(TCase *tc)
{
-#ifndef _WIN32
+#ifdef SIGPROF
if (!eina_streq(getenv("CK_FORK"), "no"))
tcase_add_test_raise_signal(tc, eina_test_debug_sighandler, SIGPROF);
#endif