summaryrefslogtreecommitdiff
path: root/apps/plugins/test_disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/test_disk.c')
-rw-r--r--apps/plugins/test_disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c
index 9d186e04f9..396e03c818 100644
--- a/apps/plugins/test_disk.c
+++ b/apps/plugins/test_disk.c
@@ -123,7 +123,7 @@ static bool test_fs(void)
123 rb->snprintf(text_buf, sizeof text_buf, "Data size: %dKB", (TEST_SIZE>>10)); 123 rb->snprintf(text_buf, sizeof text_buf, "Data size: %dKB", (TEST_SIZE>>10));
124 log_text(text_buf, true); 124 log_text(text_buf, true);
125 125
126 fd = rb->creat(TEST_FILE); 126 fd = rb->creat(TEST_FILE, 0666);
127 if (fd < 0) 127 if (fd < 0)
128 { 128 {
129 rb->splash(HZ, "creat() failed."); 129 rb->splash(HZ, "creat() failed.");
@@ -211,7 +211,7 @@ static bool file_speed(int chunksize, bool align)
211 log_text("--------------------", true); 211 log_text("--------------------", true);
212 212
213 /* File creation write speed */ 213 /* File creation write speed */
214 fd = rb->creat(TEST_FILE); 214 fd = rb->creat(TEST_FILE, 0666);
215 if (fd < 0) 215 if (fd < 0)
216 { 216 {
217 rb->splash(HZ, "creat() failed."); 217 rb->splash(HZ, "creat() failed.");
@@ -311,7 +311,7 @@ static bool test_speed(void)
311 for (i = 0; TIME_BEFORE(*rb->current_tick, time); i++) 311 for (i = 0; TIME_BEFORE(*rb->current_tick, time); i++)
312 { 312 {
313 rb->snprintf(text_buf, sizeof(text_buf), TESTBASEDIR "/%08x.tmp", i); 313 rb->snprintf(text_buf, sizeof(text_buf), TESTBASEDIR "/%08x.tmp", i);
314 fd = rb->creat(text_buf); 314 fd = rb->creat(text_buf, 0666);
315 if (fd < 0) 315 if (fd < 0)
316 { 316 {
317 last_file = i; 317 last_file = i;