Fix copyright
[yaffs2.git] / direct / test-framework / timothy_tests / yaffs_and_linux_mirror_tests / yaffs_test_unlink.c
1 /*
2  * YAFFS: Yet another FFS. A NAND-flash specific file system.
3  *
4  * Copyright (C) 2002-2018 Aleph One Ltd.
5  *
6  * Created by Timothy Manning <timothy@yaffs.net>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12
13 #include "yaffs_test_unlink.h"
14
15 int yaffs_test_unlink(arg_temp *args_struct)
16 {
17         char path[250];
18         char message[150];
19         int output;
20         join_paths(yaffs_struct.root_path,args_struct->string1, path );
21         sprintf(message,"file path: %s\n",path);        
22         print_message(3,message);
23
24         output= yaffs_unlink(path);
25
26         if (output<0) {
27                 print_message(3,"failed to unlink file\n");
28                 return -1;
29         } else {
30                 return 1;
31         }
32
33 }