aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-12-08 19:38:10 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-12-08 19:38:10 +0900
commitdccf4142eaac44711692c295d81e0103c8042cd2 (patch)
tree1dd25be9945abbc37b581d743c68303eac54c498 /src
parentf26345b68768695391d9a8ae983a27c03b8ce874 (diff)
downloadgnunet-dccf4142eaac44711692c295d81e0103c8042cd2.tar.gz
gnunet-dccf4142eaac44711692c295d81e0103c8042cd2.zip
-more fixmes, minor const fix
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_testing_ng_lib.h3
-rw-r--r--src/testing/testing_api_loop.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h
index 1e2f4b30d..768298b48 100644
--- a/src/include/gnunet_testing_ng_lib.h
+++ b/src/include/gnunet_testing_ng_lib.h
@@ -404,6 +404,7 @@ GNUNET_TESTING_main (struct GNUNET_TESTING_Command *commands,
404 * @param marker chunk to find in @a prog 404 * @param marker chunk to find in @a prog
405 * // FIXME: this does not belong here! => libgnunetutil, maybe? 405 * // FIXME: this does not belong here! => libgnunetutil, maybe?
406 * // FIXME: return bool? document return value! 406 * // FIXME: return bool? document return value!
407 * // FIXME: man strstr??
407 */ 408 */
408int 409int
409GNUNET_TESTING_has_in_name (const char *prog, 410GNUNET_TESTING_has_in_name (const char *prog,
@@ -497,7 +498,7 @@ GNUNET_TESTING_running (const struct GNUNET_TESTING_Command *command);
497 * @return GNUNET_NO if the command is not finished, GNUNET_YES if it is finished. 498 * @return GNUNET_NO if the command is not finished, GNUNET_YES if it is finished.
498 */ 499 */
499enum GNUNET_GenericReturnValue 500enum GNUNET_GenericReturnValue
500GNUNET_TESTING_finished (struct GNUNET_TESTING_Command *command); 501GNUNET_TESTING_finished (const struct GNUNET_TESTING_Command *command);
501 502
502 503
503/** 504/**
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index f19654029..a3a8219b3 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -479,7 +479,7 @@ GNUNET_TESTING_running (const struct GNUNET_TESTING_Command *command)
479 479
480 480
481enum GNUNET_GenericReturnValue 481enum GNUNET_GenericReturnValue
482GNUNET_TESTING_finished (struct GNUNET_TESTING_Command *command) 482GNUNET_TESTING_finished (const struct GNUNET_TESTING_Command *command)
483{ 483{
484 struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get (); 484 struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
485 struct GNUNET_TIME_Relative diff = GNUNET_TIME_absolute_get_difference ( 485 struct GNUNET_TIME_Relative diff = GNUNET_TIME_absolute_get_difference (