blob: b259a3c01d6e23502f189d972bb2233c14861cd4 [file] [log] [blame]
Benny Prijonofb9d9872007-03-21 22:05:58 +00001/* $Id$ */
2/*
3 * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19#include "test.h"
20
21#if defined(PJ_SUNOS) && PJ_SUNOS!=0
22#include <signal.h>
23static void init_signals()
24{
25 struct sigaction act;
26
27 memset(&act, 0, sizeof(act));
28 act.sa_handler = SIG_IGN;
29
30 sigaction(SIGALRM, &act, NULL);
31}
32
33#else
34#define init_signals()
35#endif
36
37#define boost()
38
39int main(int argc, char *argv[])
40{
41 int rc;
42
43 PJ_UNUSED_ARG(argc);
44 PJ_UNUSED_ARG(argv);
45
46 boost();
47 init_signals();
48
49 rc = test_main();
50
Benny Prijono2532b9d2007-03-22 01:16:37 +000051 if (argc == 2 && pj_ansi_strcmp(argv[1], "-i")==0) {
52 char buf[10];
Benny Prijonofd7f1472007-03-22 11:59:03 +000053
54 puts("Press <ENTER> to exit");
Benny Prijono2532b9d2007-03-22 01:16:37 +000055 fgets(buf, sizeof(buf), stdin);
56 }
57
Benny Prijonofb9d9872007-03-21 22:05:58 +000058 return rc;
59}
60