Mercurial > irccd
comparison tests/test-jsapi-timer.c @ 1132:6f85c4743494
tests: fix broken tests because of SIGUSR1
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 09 Dec 2021 11:34:49 +0100 |
parents | 99dccafade22 |
children | 2daceccf7392 |
comparison
equal
deleted
inserted
replaced
1131:bd56d9793d6a | 1132:6f85c4743494 |
---|---|
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 */ | 17 */ |
18 | 18 |
19 #include <poll.h> | 19 #include <poll.h> |
20 #include <signal.h> | |
20 | 21 |
21 #define GREATEST_USE_ABBREVS 0 | 22 #define GREATEST_USE_ABBREVS 0 |
22 #include <greatest.h> | 23 #include <greatest.h> |
23 | 24 |
24 #include <irccd/irccd.h> | 25 #include <irccd/irccd.h> |
109 GREATEST_MAIN_DEFS(); | 110 GREATEST_MAIN_DEFS(); |
110 | 111 |
111 int | 112 int |
112 main(int argc, char **argv) | 113 main(int argc, char **argv) |
113 { | 114 { |
115 struct sigaction sa; | |
116 | |
117 sigemptyset(&sa.sa_mask); | |
118 sa.sa_flags = 0; | |
119 sa.sa_handler = SIG_IGN; | |
120 sigaction(SIGUSR1, &sa, NULL); | |
121 | |
114 irc_bot_init(); | 122 irc_bot_init(); |
115 | 123 |
116 GREATEST_MAIN_BEGIN(); | 124 GREATEST_MAIN_BEGIN(); |
117 GREATEST_RUN_SUITE(suite_basics); | 125 GREATEST_RUN_SUITE(suite_basics); |
118 GREATEST_MAIN_END(); | 126 GREATEST_MAIN_END(); |