diff options
Diffstat (limited to 'src/util/test_disk.c')
-rw-r--r-- | src/util/test_disk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/test_disk.c b/src/util/test_disk.c index 705a24abf..8b485edc5 100644 --- a/src/util/test_disk.c +++ b/src/util/test_disk.c | |||
@@ -36,8 +36,10 @@ testReadWrite () | |||
36 | char tmp[100 + 1]; | 36 | char tmp[100 + 1]; |
37 | int ret; | 37 | int ret; |
38 | 38 | ||
39 | if (GNUNET_OK != GNUNET_DISK_fn_write (".testfile", TESTSTRING, strlen ( | 39 | if (strlen(TESTSTRING) != |
40 | TESTSTRING), GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE)) | 40 | GNUNET_DISK_fn_write (".testfile", TESTSTRING, |
41 | strlen (TESTSTRING), | ||
42 | GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE)) | ||
41 | return 1; | 43 | return 1; |
42 | if (GNUNET_OK != GNUNET_DISK_file_test (".testfile")) | 44 | if (GNUNET_OK != GNUNET_DISK_file_test (".testfile")) |
43 | return 1; | 45 | return 1; |