aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/test_datastore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-11-03 21:26:40 +0000
committerChristian Grothoff <christian@grothoff.org>2010-11-03 21:26:40 +0000
commit721e49caeea6ba5073f8bc5c6c08359295c02bb5 (patch)
treee06e80ba90af91e9452a48a7a5782913199b4877 /src/datastore/test_datastore_api.c
parent37ac1b7c9e9e05f93d4100cfb53450ec2d370989 (diff)
downloadgnunet-721e49caeea6ba5073f8bc5c6c08359295c02bb5.tar.gz
gnunet-721e49caeea6ba5073f8bc5c6c08359295c02bb5.zip
original patch from Mantis 1614
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r--src/datastore/test_datastore_api.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c
index ae7782d6c..feba0b7ac 100644
--- a/src/datastore/test_datastore_api.c
+++ b/src/datastore/test_datastore_api.c
@@ -641,7 +641,7 @@ check ()
641{ 641{
642 char cfg_name[128]; 642 char cfg_name[128];
643#if START_DATASTORE 643#if START_DATASTORE
644 pid_t pid; 644 GNUNET_OS_Process *proc;
645#endif 645#endif
646 char *const argv[] = { 646 char *const argv[] = {
647 "test-datastore-api", 647 "test-datastore-api",
@@ -660,7 +660,7 @@ check ()
660 "test_datastore_api_data_%s.conf", 660 "test_datastore_api_data_%s.conf",
661 plugin_name); 661 plugin_name);
662#if START_DATASTORE 662#if START_DATASTORE
663 pid = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm", 663 proc = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm",
664 "gnunet-service-arm", 664 "gnunet-service-arm",
665#if VERBOSE 665#if VERBOSE
666 "-L", "DEBUG", 666 "-L", "DEBUG",
@@ -671,12 +671,14 @@ check ()
671 argv, "test-datastore-api", "nohelp", 671 argv, "test-datastore-api", "nohelp",
672 options, &run, NULL); 672 options, &run, NULL);
673#if START_DATASTORE 673#if START_DATASTORE
674 if (0 != PLIBC_KILL (pid, SIGTERM)) 674 if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
675 { 675 {
676 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); 676 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
677 ok = 1; 677 ok = 1;
678 } 678 }
679 GNUNET_OS_process_wait(pid); 679 GNUNET_OS_process_wait (proc);
680 GNUNET_OS_process_close (proc);
681 proc = NULL;
680#endif 682#endif
681 if (ok != 0) 683 if (ok != 0)
682 fprintf (stderr, "Missed some testcases: %u\n", ok); 684 fprintf (stderr, "Missed some testcases: %u\n", ok);