projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-fixing
[oweals/gnunet.git]
/
src
/
util
/
test_getopt.c
diff --git
a/src/util/test_getopt.c
b/src/util/test_getopt.c
index a517887bff54c9e6a1c56c8c688a37a79ddaa9b3..65c3b5d2ee99bff5380cfc086c848bc321cd36d7 100644
(file)
--- a/
src/util/test_getopt.c
+++ b/
src/util/test_getopt.c
@@
-26,7
+26,6
@@
#include "gnunet_configuration_lib.h"
#include "gnunet_getopt_lib.h"
#include "gnunet_configuration_lib.h"
#include "gnunet_getopt_lib.h"
-#define VERBOSE 0
static int
testMinimal ()
static int
testMinimal ()
@@
-45,6
+44,7
@@
testMinimal ()
return 0;
}
return 0;
}
+
static int
testVerbose ()
{
static int
testVerbose ()
{
@@
-75,6
+75,7
@@
testVerbose ()
return 0;
}
return 0;
}
+
static int
testVersion ()
{
static int
testVersion ()
{
@@
-88,7
+89,7
@@
testVersion ()
GNUNET_GETOPT_OPTION_END
};
GNUNET_GETOPT_OPTION_END
};
- if (
-1
!= GNUNET_GETOPT_run ("test_getopt", versionoptionlist, 2, myargv))
+ if (
0
!= GNUNET_GETOPT_run ("test_getopt", versionoptionlist, 2, myargv))
{
GNUNET_break (0);
return 1;
{
GNUNET_break (0);
return 1;
@@
-96,6
+97,7
@@
testVersion ()
return 0;
}
return 0;
}
+
static int
testAbout ()
{
static int
testAbout ()
{
@@
-109,7
+111,7
@@
testAbout ()
GNUNET_GETOPT_OPTION_END
};
GNUNET_GETOPT_OPTION_END
};
- if (
-1
!= GNUNET_GETOPT_run ("test_getopt", aboutoptionlist, 2, myargv))
+ if (
0
!= GNUNET_GETOPT_run ("test_getopt", aboutoptionlist, 2, myargv))
{
GNUNET_break (0);
return 1;
{
GNUNET_break (0);
return 1;
@@
-117,6
+119,7
@@
testAbout ()
return 0;
}
return 0;
}
+
static int
testLogOpts ()
{
static int
testLogOpts ()
{
@@
-153,6
+156,7
@@
testLogOpts ()
return 0;
}
return 0;
}
+
static int
testFlagNum ()
{
static int
testFlagNum ()
{
@@
-190,6
+194,7
@@
testFlagNum ()
return 0;
}
return 0;
}
+
int
main (int argc, char *argv[])
{
int
main (int argc, char *argv[])
{