aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_strings.c
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2009-11-20 20:22:51 +0000
committerNils Durner <durner@gnunet.org>2009-11-20 20:22:51 +0000
commitef9995ada40d9b45cbab1e528d529b66bd4a754e (patch)
tree1a435b32c70a8aebbe25bc7e62f416267b5f6850 /src/util/test_strings.c
parent512e1b2444a35a36740111655063a1d99dbc8c8d (diff)
downloadgnunet-ef9995ada40d9b45cbab1e528d529b66bd4a754e.tar.gz
gnunet-ef9995ada40d9b45cbab1e528d529b66bd4a754e.zip
fix MinGW
Diffstat (limited to 'src/util/test_strings.c')
-rw-r--r--src/util/test_strings.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/util/test_strings.c b/src/util/test_strings.c
index 107bb746c..0c7c56bcd 100644
--- a/src/util/test_strings.c
+++ b/src/util/test_strings.c
@@ -65,7 +65,13 @@ check ()
65 (GNUNET_TIME_UNIT_MILLISECONDS, 65 (GNUNET_TIME_UNIT_MILLISECONDS,
66 7 * 60 * 60 * 1000)); 66 7 * 60 * 60 * 1000));
67 WANT (buf, b); 67 WANT (buf, b);
68 sprintf (buf, "%s%s", getenv ("HOME"), DIR_SEPARATOR_STR); 68 sprintf (buf, "%s%s", getenv (
69#ifndef MINGW
70 "HOME"
71#else
72 "USERPROFILE"
73#endif
74) , DIR_SEPARATOR_STR);
69 b = GNUNET_STRINGS_filename_expand ("~"); 75 b = GNUNET_STRINGS_filename_expand ("~");
70 WANT (buf, b); 76 WANT (buf, b);
71 GNUNET_STRINGS_buffer_fill (buf, sizeof (buf), 3, "a", "btx", "c"); 77 GNUNET_STRINGS_buffer_fill (buf, sizeof (buf), 3, "a", "btx", "c");