expect platform specific slashes
authorNils Durner <durner@gnunet.org>
Wed, 26 Aug 2009 20:44:17 +0000 (20:44 +0000)
committerNils Durner <durner@gnunet.org>
Wed, 26 Aug 2009 20:44:17 +0000 (20:44 +0000)
src/util/test_disk.c

index 772ca2889a74c634a92a4cc2806262114f3903bc..f2bdb19d796e59656192c2065a6f5ba1f165516b 100644 (file)
@@ -136,11 +136,11 @@ scan_callback (void *want, const char *filename)
 static int
 testDirScan ()
 {
-  if (GNUNET_OK != GNUNET_DISK_directory_create ("test/entry"))
+  if (GNUNET_OK != GNUNET_DISK_directory_create ("test" DIR_SEPARATOR_STR "entry"))
     return 1;
-  if (GNUNET_OK != GNUNET_DISK_directory_create ("test/entry_more"))
+  if (GNUNET_OK != GNUNET_DISK_directory_create ("test" DIR_SEPARATOR_STR "entry_more"))
     return 1;
-  GNUNET_DISK_directory_scan ("test", &scan_callback, "test/entry");
+  GNUNET_DISK_directory_scan ("test", &scan_callback, "test" DIR_SEPARATOR_STR "entry");
   if (GNUNET_OK != GNUNET_DISK_directory_remove ("test"))
     return 1;
   if (ok < 2)