aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore/test_plugin_psycstore.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-10-11 13:45:37 +0000
committerChristian Grothoff <christian@grothoff.org>2016-10-11 13:45:37 +0000
commit7e5d16c7dc211c0682b38deaa3bfa108b0b07bb3 (patch)
tree38ae8a2c7cdddf39b8b245de641189fcdf3ad233 /src/psycstore/test_plugin_psycstore.c
parent70f367c6e35a8bfdd229771a48d48b0e6b3874f9 (diff)
downloadgnunet-7e5d16c7dc211c0682b38deaa3bfa108b0b07bb3.tar.gz
gnunet-7e5d16c7dc211c0682b38deaa3bfa108b0b07bb3.zip
proper bail out if plugin loading fails
Diffstat (limited to 'src/psycstore/test_plugin_psycstore.c')
-rw-r--r--src/psycstore/test_plugin_psycstore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/psycstore/test_plugin_psycstore.c b/src/psycstore/test_plugin_psycstore.c
index c1a456e60..d24405cc2 100644
--- a/src/psycstore/test_plugin_psycstore.c
+++ b/src/psycstore/test_plugin_psycstore.c
@@ -173,6 +173,7 @@ run (void *cls, char *const *args, const char *cfgfile,
173 "%s", 173 "%s",
174 "Failed to initialize PSYCstore. " 174 "Failed to initialize PSYCstore. "
175 "Database likely not setup, skipping test.\n"); 175 "Database likely not setup, skipping test.\n");
176 ok = 77;
176 return; 177 return;
177 } 178 }
178 179
@@ -511,7 +512,8 @@ main (int argc, char *argv[])
511 GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv, 512 GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv,
512 "test-plugin-psycstore", "nohelp", options, &run, NULL); 513 "test-plugin-psycstore", "nohelp", options, &run, NULL);
513 514
514 if (ok != 0) 515 if ( (0 != ok) &&
516 (77 != ok) )
515 FPRINTF (stderr, "Missed some testcases: %d\n", ok); 517 FPRINTF (stderr, "Missed some testcases: %d\n", ok);
516 518
517#if ! DEBUG_PSYCSTORE 519#if ! DEBUG_PSYCSTORE