forked from enlightenment/efl
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
This commit is contained in:
parent
6ee58996e1
commit
b14ef34ab8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue