aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_strings.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-11 09:43:04 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-11 09:43:04 +0000
commitd9d94d0e53d26af75ec8241383d166544ebd79f3 (patch)
tree9080b73624389403a198257fe0547bb4634e64d2 /src/util/test_strings.c
parent2d792ee2e9cc0c993b8907e2c8edb0c2b8465343 (diff)
downloadgnunet-d9d94d0e53d26af75ec8241383d166544ebd79f3.tar.gz
gnunet-d9d94d0e53d26af75ec8241383d166544ebd79f3.zip
converting to GNUNET_LOG_from*
Diffstat (limited to 'src/util/test_strings.c')
-rw-r--r--src/util/test_strings.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/util/test_strings.c b/src/util/test_strings.c
index c6d604144..bb0e6088f 100644
--- a/src/util/test_strings.c
+++ b/src/util/test_strings.c
@@ -50,18 +50,18 @@ check ()
50 WANT (buf, b); 50 WANT (buf, b);
51 sprintf (buf, "4 %s", _( /* time unit */ "ms")); 51 sprintf (buf, "4 %s", _( /* time unit */ "ms"));
52 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply 52 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply
53 (GNUNET_TIME_UNIT_MILLISECONDS, 53 (GNUNET_TIME_UNIT_MILLISECONDS,
54 4)); 54 4));
55 WANT (buf, b); 55 WANT (buf, b);
56 sprintf (buf, "7 %s", _( /* time unit */ "s")); 56 sprintf (buf, "7 %s", _( /* time unit */ "s"));
57 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply 57 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply
58 (GNUNET_TIME_UNIT_MILLISECONDS, 58 (GNUNET_TIME_UNIT_MILLISECONDS,
59 7 * 1000)); 59 7 * 1000));
60 WANT (buf, b); 60 WANT (buf, b);
61 sprintf (buf, "7 %s", _( /* time unit */ "h")); 61 sprintf (buf, "7 %s", _( /* time unit */ "h"));
62 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply 62 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply
63 (GNUNET_TIME_UNIT_MILLISECONDS, 63 (GNUNET_TIME_UNIT_MILLISECONDS,
64 7 * 60 * 60 * 1000)); 64 7 * 60 * 60 * 1000));
65 WANT (buf, b); 65 WANT (buf, b);
66#ifndef MINGW 66#ifndef MINGW
67 hdir = getenv ("HOME"); 67 hdir = getenv ("HOME");
@@ -88,12 +88,12 @@ check ()
88 * where the details of the day and hour depend on the timezone; 88 * where the details of the day and hour depend on the timezone;
89 * however, the "0:05 19" should always be there; hence: */ 89 * however, the "0:05 19" should always be there; hence: */
90 if (NULL == strstr (r, "0:05 19")) 90 if (NULL == strstr (r, "0:05 19"))
91 { 91 {
92 fprintf (stderr, "Got %s\n", r); 92 fprintf (stderr, "Got %s\n", r);
93 GNUNET_break (0); 93 GNUNET_break (0);
94 GNUNET_free (r); 94 GNUNET_free (r);
95 return 1; 95 return 1;
96 } 96 }
97 GNUNET_free (r); 97 GNUNET_free (r);
98 b = GNUNET_STRINGS_to_utf8 ("TEST", 4, "ASCII"); 98 b = GNUNET_STRINGS_to_utf8 ("TEST", 4, "ASCII");
99 WANT ("TEST", b); 99 WANT ("TEST", b);