diff options
Diffstat (limited to 'src/util/test_common_logging.c')
-rw-r--r-- | src/util/test_common_logging.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/test_common_logging.c b/src/util/test_common_logging.c index d057db099..934586926 100644 --- a/src/util/test_common_logging.c +++ b/src/util/test_common_logging.c | |||
@@ -44,7 +44,7 @@ main (int argc, char *argv[]) | |||
44 | unsigned int logs = 0; | 44 | unsigned int logs = 0; |
45 | 45 | ||
46 | if (0 != putenv ("GNUNET_FORCE_LOG=")) | 46 | if (0 != putenv ("GNUNET_FORCE_LOG=")) |
47 | fprintf (stderr, "Failed to putenv: %s\n", strerror (errno)); | 47 | FPRINTF (stderr, "Failed to putenv: %s\n", strerror (errno)); |
48 | GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null"); | 48 | GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null"); |
49 | GNUNET_logger_add (&my_log, &logs); | 49 | GNUNET_logger_add (&my_log, &logs); |
50 | GNUNET_logger_add (&my_log, &logs); | 50 | GNUNET_logger_add (&my_log, &logs); |
@@ -60,7 +60,7 @@ main (int argc, char *argv[]) | |||
60 | GNUNET_logger_remove (&my_log, &logs); | 60 | GNUNET_logger_remove (&my_log, &logs); |
61 | if (logs != 4) | 61 | if (logs != 4) |
62 | { | 62 | { |
63 | fprintf (stdout, "Expected 4 log calls, got %u\n", logs); | 63 | FPRINTF (stdout, "Expected 4 log calls, got %u\n", logs); |
64 | failureCount++; | 64 | failureCount++; |
65 | } | 65 | } |
66 | GNUNET_break (0 == | 66 | GNUNET_break (0 == |
@@ -84,13 +84,13 @@ main (int argc, char *argv[]) | |||
84 | GNUNET_logger_remove (&my_log, &logs); | 84 | GNUNET_logger_remove (&my_log, &logs); |
85 | if (logs != 1) | 85 | if (logs != 1) |
86 | { | 86 | { |
87 | fprintf (stdout, "Expected 1 log call, got %u\n", logs); | 87 | FPRINTF (stdout, "Expected 1 log call, got %u\n", logs); |
88 | failureCount++; | 88 | failureCount++; |
89 | } | 89 | } |
90 | 90 | ||
91 | if (failureCount != 0) | 91 | if (failureCount != 0) |
92 | { | 92 | { |
93 | fprintf (stdout, "%u TESTS FAILED!\n", failureCount); | 93 | FPRINTF (stdout, "%u TESTS FAILED!\n", failureCount); |
94 | return -1; | 94 | return -1; |
95 | } | 95 | } |
96 | return 0; | 96 | return 0; |