[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36385 - in gnunet/src: datacache datastore namestore nat u
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36385 - in gnunet/src: datacache datastore namestore nat util |
Date: |
Tue, 29 Sep 2015 09:52:23 +0200 |
Author: grothoff
Date: 2015-09-29 09:52:23 +0200 (Tue, 29 Sep 2015)
New Revision: 36385
Modified:
gnunet/src/datacache/perf_datacache.c
gnunet/src/datacache/test_datacache.c
gnunet/src/datastore/test_plugin_datastore.c
gnunet/src/namestore/test_namestore_api_store.c
gnunet/src/nat/test_nat.c
gnunet/src/util/common_allocation.c
gnunet/src/util/perf_crypto_ecc_dlog.c
Log:
report skipped tests, doxygen fixes
Modified: gnunet/src/datacache/perf_datacache.c
===================================================================
--- gnunet/src/datacache/perf_datacache.c 2015-09-28 20:45:45 UTC (rev
36384)
+++ gnunet/src/datacache/perf_datacache.c 2015-09-29 07:52:23 UTC (rev
36385)
@@ -75,6 +75,7 @@
if (h == NULL)
{
FPRINTF (stderr, "%s", "Failed to initialize datacache. Database likely
not setup, skipping test.\n");
+ ok = 77; /* mark test as skipped */
return;
}
exp = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS);
@@ -150,7 +151,7 @@
plugin_name);
GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv,
"perf-datacache", "nohelp", options, &run, NULL);
- if (ok != 0)
+ if ( (0 != ok) && (77 != ok) )
FPRINTF (stderr, "Missed some perfcases: %d\n", ok);
return ok;
}
Modified: gnunet/src/datacache/test_datacache.c
===================================================================
--- gnunet/src/datacache/test_datacache.c 2015-09-28 20:45:45 UTC (rev
36384)
+++ gnunet/src/datacache/test_datacache.c 2015-09-29 07:52:23 UTC (rev
36385)
@@ -77,6 +77,7 @@
FPRINTF (stderr,
"%s",
"Failed to initialize datacache. Database likely not setup,
skipping test.\n");
+ ok = 77; /* mark test as skipped */
return;
}
exp = GNUNET_TIME_absolute_get ();
@@ -140,7 +141,7 @@
plugin_name);
GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv,
"test-datacache", "nohelp", options, &run, NULL);
- if (0 != ok)
+ if ( (0 != ok) && (77 != ok) )
FPRINTF (stderr, "Missed some testcases: %d\n", ok);
return ok;
}
Modified: gnunet/src/datastore/test_plugin_datastore.c
===================================================================
--- gnunet/src/datastore/test_plugin_datastore.c 2015-09-28 20:45:45 UTC
(rev 36384)
+++ gnunet/src/datastore/test_plugin_datastore.c 2015-09-29 07:52:23 UTC
(rev 36385)
@@ -344,11 +344,14 @@
char *libname;
if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (cfg, "DATASTORE", "DATABASE",
+ GNUNET_CONFIGURATION_get_value_string (cfg,
+ "DATASTORE",
+ "DATABASE",
&name))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("No `%s' specified for `%s' in configuration!\n"),
"DATABASE",
+ _("No `%s' specified for `%s' in configuration!\n"),
+ "DATABASE",
"DATASTORE");
return NULL;
}
@@ -363,6 +366,7 @@
FPRINTF (stderr, "Failed to load plugin `%s'!\n", name);
GNUNET_free (libname);
GNUNET_free (name);
+ ok = 77; /* mark test as skipped */
return NULL;
}
GNUNET_free (libname);
@@ -420,7 +424,7 @@
"test_plugin_datastore_data_%s.conf", plugin_name);
GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv,
"test-plugin-datastore", "nohelp", options, &run, NULL);
- if (0 != ok)
+ if ( (0 != ok) && (77 != ok) )
FPRINTF (stderr, "Missed some testcases: %u\n", ok);
GNUNET_DISK_directory_remove (dir_name);
return ok;
Modified: gnunet/src/namestore/test_namestore_api_store.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_store.c 2015-09-28 20:45:45 UTC
(rev 36384)
+++ gnunet/src/namestore/test_namestore_api_store.c 2015-09-29 07:52:23 UTC
(rev 36385)
@@ -171,8 +171,8 @@
}
if (NULL != directory)
{
- GNUNET_DISK_directory_remove (directory);
- GNUNET_free (directory);
+ GNUNET_DISK_directory_remove (directory);
+ GNUNET_free (directory);
}
return res;
}
Modified: gnunet/src/nat/test_nat.c
===================================================================
--- gnunet/src/nat/test_nat.c 2015-09-28 20:45:45 UTC (rev 36384)
+++ gnunet/src/nat/test_nat.c 2015-09-29 07:52:23 UTC (rev 36385)
@@ -128,7 +128,7 @@
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not find a valid interface address!\n");
- exit (GNUNET_SYSERR);
+ exit (77); /* marks test as skipped */
}
addr = data.addr;
GNUNET_assert (addr->sa_family == AF_INET || addr->sa_family == AF_INET6);
Modified: gnunet/src/util/common_allocation.c
===================================================================
--- gnunet/src/util/common_allocation.c 2015-09-28 20:45:45 UTC (rev 36384)
+++ gnunet/src/util/common_allocation.c 2015-09-29 07:52:23 UTC (rev 36385)
@@ -224,8 +224,8 @@
* want to keep track of allocations.
*
* @param ptr the pointer to free
- * @param filename where in the code was the call to GNUNET_array_grow
- * @param linenumber where in the code was the call to GNUNET_array_grow
+ * @param filename where in the code was the call to GNUNET_free
+ * @param linenumber where in the code was the call to GNUNET_free
*/
void
GNUNET_xfree_ (void *ptr,
Modified: gnunet/src/util/perf_crypto_ecc_dlog.c
===================================================================
--- gnunet/src/util/perf_crypto_ecc_dlog.c 2015-09-28 20:45:45 UTC (rev
36384)
+++ gnunet/src/util/perf_crypto_ecc_dlog.c 2015-09-29 07:52:23 UTC (rev
36385)
@@ -170,4 +170,4 @@
return 0;
}
-/* end of test_crypto_ecc_dlog.c */
+/* end of perf_crypto_ecc_dlog.c */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36385 - in gnunet/src: datacache datastore namestore nat util,
gnunet <=