diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-19 10:48:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-19 10:48:51 +0000 |
commit | b3e1d0806fb274c62a5acf19c56369b71f992312 (patch) | |
tree | 657a7cd7a327aad0e7598b3d28cecc0d5cd95cd4 /src/util/test_disk.c | |
parent | 0385dc1043912d3ddc5d57f6b7346054a30f64ef (diff) | |
download | gnunet-b3e1d0806fb274c62a5acf19c56369b71f992312.tar.gz gnunet-b3e1d0806fb274c62a5acf19c56369b71f992312.zip |
-LRN: calculate file size for single files when needed and use GNUNET_DISK_file_size instead of STAT
Diffstat (limited to 'src/util/test_disk.c')
-rw-r--r-- | src/util/test_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/test_disk.c b/src/util/test_disk.c index 546277256..149cec0b2 100644 --- a/src/util/test_disk.c +++ b/src/util/test_disk.c | |||
@@ -97,7 +97,7 @@ testOpenClose () | |||
97 | GNUNET_break (5 == GNUNET_DISK_file_write (fh, "Hello", 5)); | 97 | GNUNET_break (5 == GNUNET_DISK_file_write (fh, "Hello", 5)); |
98 | GNUNET_DISK_file_close (fh); | 98 | GNUNET_DISK_file_close (fh); |
99 | GNUNET_break (GNUNET_OK == | 99 | GNUNET_break (GNUNET_OK == |
100 | GNUNET_DISK_file_size (".testfile", &size, GNUNET_NO)); | 100 | GNUNET_DISK_file_size (".testfile", &size, GNUNET_NO, GNUNET_YES)); |
101 | if (size != 5) | 101 | if (size != 5) |
102 | return 1; | 102 | return 1; |
103 | GNUNET_break (0 == UNLINK (".testfile")); | 103 | GNUNET_break (0 == UNLINK (".testfile")); |