瀏覽代碼

Fix fsync on Redox

Jeremy Soller 5 年之前
父節點
當前提交
84745ca770
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/unistd/fsync.c

+ 1 - 1
tests/unistd/fsync.c

@@ -6,7 +6,7 @@
 #include "test_helpers.h"
 #include "test_helpers.h"
 
 
 int main(void) {
 int main(void) {
-    int fd = open(".", 0, 0);
+    int fd = open("example_dir/1-never-gonna-give-you-up", O_RDWR);
     ERROR_IF(open, fd, == -1);
     ERROR_IF(open, fd, == -1);
     UNEXP_IF(open, fd, < 0);
     UNEXP_IF(open, fd, < 0);