blob: 35cb68376b4a3a09e47f6e4bc84604c89bc44035 [file] [log] [blame]
Benny Prijono015cbfd2007-02-25 15:38:32 +00001/* $Id$ */
Benny Prijono5dcb38d2005-11-21 01:55:47 +00002/*
Benny Prijonoa771a512007-02-19 01:13:53 +00003 * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.org>
Benny Prijono5dcb38d2005-11-21 01:55:47 +00004 *
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"
Benny Prijono0d7b4a82007-06-07 15:46:07 +000020#include <pj/string.h>
Benny Prijono5dcb38d2005-11-21 01:55:47 +000021
22#if defined(PJ_SUNOS) && PJ_SUNOS!=0
23#include <signal.h>
24static void init_signals()
25{
26 struct sigaction act;
27
28 memset(&act, 0, sizeof(act));
29 act.sa_handler = SIG_IGN;
30
31 sigaction(SIGALRM, &act, NULL);
32}
33
34#else
35#define init_signals()
36#endif
37
38#define boost()
39
40int main(int argc, char *argv[])
41{
42 int rc;
43
44 PJ_UNUSED_ARG(argc);
45 PJ_UNUSED_ARG(argv);
46
47 boost();
48 init_signals();
49
50 rc = test_main();
51
Benny Prijono0d7b4a82007-06-07 15:46:07 +000052 if (argc==2 && pj_ansi_strcmp(argv[1], "-i")==0) {
53 char s[10];
54
55 puts("Press ENTER to quit");
56 fgets(s, sizeof(s), stdin);
57 }
58
Benny Prijono5dcb38d2005-11-21 01:55:47 +000059 return rc;
60}
61