Fix copyright
[yaffs2.git] / direct / test-framework / timothy_tests / quick_tests / test_yaffs_flush_EROFS.c
index 41a74505880614fb3854c6ceb7a79d3506e7414e..2a1e234d7c9361f62211e477f13a3b35b47aea60 100644 (file)
@@ -1,8 +1,7 @@
 /*
  * YAFFS: Yet another FFS. A NAND-flash specific file system.
  *
- * Copyright (C) 2002-2011 Aleph One Ltd.
- *   for Toby Churchill Ltd and Brightstar Engineering
+ * Copyright (C) 2002-2018 Aleph One Ltd.
  *
  * Created by Timothy Manning <timothy@yaffs.net>
  *
@@ -19,6 +18,10 @@ int test_yaffs_flush_EROFS(void)
 {
        int output=0;
        int error =0;
+       if (yaffs_close(yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE))==-1){
+               print_message("failed to create file\n",1);
+               return -1;
+       }
        EROFS_setup();
        handle = yaffs_open(FILE_PATH,O_CREAT  ,S_IREAD  );
        if (handle<0){