projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding more time tests
[yaffs2.git]
/
linux-tests
/
xattrtest.c
diff --git
a/linux-tests/xattrtest.c
b/linux-tests/xattrtest.c
index 4e92dfc09f0f71e2fc36b124981a5dd8a760c584..54732bc941605d198cc5e10c56a8261d0714d1ef 100644
(file)
--- a/
linux-tests/xattrtest.c
+++ b/
linux-tests/xattrtest.c
@@
-1,8
+1,7
@@
/*
* YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
/*
* YAFFS: Yet another Flash File System . 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 Charles Manning <charles@aleph1.co.uk>
*
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
@@
-19,7
+18,8
@@
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
-
+#include <unistd.h>
+#include <sys/xattr.h>
static void print_xattrib_val(const char *path, const char *name)
{
static void print_xattrib_val(const char *path, const char *name)
{
@@
-66,8
+66,6
@@
void basic_xattr_test(const char *mountpt)
int h;
int result;
int val1;
int h;
int result;
int val1;
- int valread;
-
strcpy(name,mountpt);
strcat(name,"/");
strcpy(name,mountpt);
strcat(name,"/");
@@
-115,4
+113,5
@@
int simulate_power_failure;
int main(int argc, char *argv[])
{
basic_xattr_test("/mnt/");
int main(int argc, char *argv[])
{
basic_xattr_test("/mnt/");
+ return 0;
}
}