aboutsummaryrefslogtreecommitdiff
path: root/src/monkey/test_gnunet_monkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/monkey/test_gnunet_monkey.c')
-rw-r--r--src/monkey/test_gnunet_monkey.c72
1 files changed, 0 insertions, 72 deletions
diff --git a/src/monkey/test_gnunet_monkey.c b/src/monkey/test_gnunet_monkey.c
deleted file mode 100644
index d1d4155d0..000000000
--- a/src/monkey/test_gnunet_monkey.c
+++ /dev/null
@@ -1,72 +0,0 @@
1/*
2 This file is part of GNUnet.
3 (C) 2009 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file monkey/test_gnunet_monkey.c
23 * @brief Testcase for Monkey
24 * @author Safey Abdel Halim
25 */
26
27/**
28 * Test case for Monkey Automatic Debugger.
29 * It launches Monkey to run binaries having
30 * known bugs (e.g. Null Pointer Exception)
31 * Monkey should be able to detect the problem and send an e-mail
32 * containing the problem description.
33 */
34
35
36#include "platform.h"
37#include "gnunet_common.h"
38#include "gnunet_util_lib.h"
39#include "gnunet_program_lib.h"
40
41
42static int
43check ()
44{
45 GNUNET_OS_process_close (GNUNET_OS_start_process (NULL, NULL,
46 "gnunet-monkey",
47 "gnunet-monkey",
48 "./bug_null_pointer_exception",
49 NULL));
50
51 return 0;
52}
53
54
55int
56main (int argc, char *argv[])
57{
58 int ret;
59
60 GNUNET_log_setup ("test-gnunet-monkey",
61#if VERBOSE
62 "DEBUG",
63#else
64 "WARNING",
65#endif
66 NULL);
67 ret = check ();
68 return ret;
69}
70
71/* end of test_gnunet_monkey.c */
72