Home
last modified time | relevance | path

Searched refs:TESTFILE (Results 1 – 25 of 54) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/truncate/
Dtruncate02.c81 #define TESTFILE "testfile" /* file under test */ macro
119 TEST(truncate(TESTFILE, TRUNC_LEN1)); in main()
124 TESTFILE, TRUNC_LEN1, TEST_ERRNO, in main()
131 if (stat(TESTFILE, &stat_buf) < 0) { in main()
134 "error:%d", TESTFILE, errno); in main()
145 "error:%d", TESTFILE, errno); in main()
158 TEST(truncate(TESTFILE, TRUNC_LEN2)); in main()
163 TESTFILE, TRUNC_LEN2, in main()
172 if (stat(TESTFILE, &stat_buf) < 0) { in main()
175 "error:%d", TESTFILE, errno); in main()
[all …]
Dtruncate01.c82 #define TESTFILE "testfile" /* file under test */ macro
112 TEST(truncate(TESTFILE, TRUNC_LEN)); in main()
117 TESTFILE, TRUNC_LEN, TEST_ERRNO, in main()
124 if (stat(TESTFILE, &stat_buf) < 0) { in main()
127 TESTFILE, errno); in main()
139 ", Expected %d", TESTFILE, in main()
145 TESTFILE, TRUNC_LEN); in main()
186 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup()
189 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup()
197 TESTFILE, errno, strerror(errno)); in setup()
/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod03.c90 #define TESTFILE "testfile" macro
114 TEST(chmod(TESTFILE, PERMS)); in main()
118 TESTFILE, PERMS); in main()
121 if (stat(TESTFILE, &stat_buf) < 0) { in main()
123 "stat(%s) failed", TESTFILE); in main()
130 "Expected 0777", TESTFILE, file_mode); in main()
134 TESTFILE, PERMS); in main()
163 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup()
166 TESTFILE, FILE_MODE); in setup()
Dchmod07.c36 #define TESTFILE "testfile" macro
46 TEST(chmod(TESTFILE, PERMS)); in test_chmod()
49 TESTFILE, PERMS); in test_chmod()
52 if (stat(TESTFILE, &stat_buf) == -1) { in test_chmod()
59 TESTFILE, PERMS); in test_chmod()
62 TESTFILE, stat_buf.st_mode, PERMS); in test_chmod()
80 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup()
82 SAFE_CHOWN(TESTFILE, user1_uid, group1_gid); in setup()
Dchmod01.c82 #define TESTFILE "testfile" macro
112 TEST(chmod(TESTFILE, mode)); in main()
116 "chmod(%s, %#o) failed", TESTFILE, in main()
120 if (stat(TESTFILE, &stat_buf) < 0) in main()
122 "stat(%s) failed", TESTFILE); in main()
128 TESTFILE, mode); in main()
132 TESTFILE, stat_buf.st_mode, in main()
151 fd = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup()
/external/ltp/testcases/kernel/syscalls/symlink/
Dsymlink04.c81 #define TESTFILE "testfile" macro
108 TEST(symlink(TESTFILE, SYMFILE)); in main()
112 TESTFILE, SYMFILE, TEST_ERRNO, in main()
129 TESTFILE); in main()
133 TESTFILE, SYMFILE); in main()
169 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup()
172 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup()
178 TESTFILE, errno, strerror(errno)); in setup()
Dsymlink05.c82 #define TESTFILE "testfile" macro
108 TEST(symlink(TESTFILE, SYMFILE)); in main()
113 TESTFILE, SYMFILE, TEST_ERRNO, in main()
130 TESTFILE); in main()
134 TESTFILE, SYMFILE); in main()
/external/ltp/testcases/kernel/syscalls/chown/
Dchown03.c89 #define TESTFILE "testfile" macro
117 TEST(CHOWN(cleanup, TESTFILE, -1, group_id)); in main()
121 TESTFILE); in main()
125 if (stat(TESTFILE, &stat_buf) == -1) in main()
133 TESTFILE, stat_buf.st_uid, in main()
139 " %#o, Expected %#o", TESTFILE, in main()
144 TESTFILE); in main()
177 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) in setup()
179 "open(%s, O_RDWR|O_CREAT, %o) failed", TESTFILE, in setup()
Dchown05.c83 #define TESTFILE "testfile" macro
123 TEST(CHOWN(cleanup, TESTFILE, user_id, group_id)); in main()
129 if (stat(TESTFILE, &stat_buf) == -1) in main()
140 "%d", TESTFILE, user_id, in main()
163 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) in setup()
165 TESTFILE); in setup()
/external/lz4/examples/
DMakefile35 TESTFILE = Makefile macro
85 ./doubleBuffer$(EXT) $(TESTFILE)
87 ./ringBuffer$(EXT) $(TESTFILE)
89 ./ringBufferHC$(EXT) $(TESTFILE)
91 ./lineCompress$(EXT) $(TESTFILE)
93 ./dictionaryRandomAccess$(EXT) $(TESTFILE) $(TESTFILE) 1100 1400
95 ./frameCompress$(EXT) $(TESTFILE)
96 $(LZ4) -vt $(TESTFILE).lz4
/external/protobuf/src/google/protobuf/io/
Dgzip_stream_unittest.sh38 TESTFILE=Makefile
40 (./zcgzip < ${TESTFILE} | gunzip | cmp - ${TESTFILE}) && \
41 (gzip < ${TESTFILE} | ./zcgunzip | cmp - ${TESTFILE})
/external/ltp/testcases/kernel/syscalls/fchownat/
Dfchownat01.c41 #define TESTFILE "testfile" macro
58 {0, 0, 0, &dir_fd, TESTFILE},
59 {-1, ENOTDIR, 0, &fd, TESTFILE},
60 {-1, EBADF, 0, &no_fd, TESTFILE},
61 {-1, EINVAL, 9999, &dir_fd, TESTFILE},
62 {0, 0, 0, &cu_fd, TESTFILE},
101 SAFE_TOUCH(cleanup, TESTFILE, 0600, NULL); in setup()
/external/ltp/testcases/kernel/syscalls/readlink/
Dreadlink01.c19 #define TESTFILE "test_file" macro
27 int exp_val = strlen(TESTFILE); in test_readlink()
41 if (memcmp(buffer, TESTFILE, exp_val) != 0) { in test_readlink()
43 TESTFILE, buffer); in test_readlink()
78 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, 0444); in setup()
80 SAFE_SYMLINK(TESTFILE, SYMFILE); in setup()
/external/ltp/testcases/kernel/syscalls/fchown/
Dfchown03.c48 #define TESTFILE "testfile" macro
81 TESTFILE, TEST_ERRNO); in main()
91 TESTFILE, user_id, group_id); in main()
97 " %#o, Expected %#o", TESTFILE, in main()
101 "Setuid/gid bits cleared", TESTFILE); in main()
122 fildes = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup()
136 tst_resm(TWARN | TERRNO, "close(%s) Failed", TESTFILE); in cleanup()
Dfchown05.c39 #define TESTFILE "testfile" macro
100 TESTFILE, user_id, group_id); in main()
104 tc[i].desc, TESTFILE); in main()
123 fildes = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup()
129 tst_resm(TWARN | TERRNO, "close(%s) Failed", TESTFILE); in cleanup()
/external/ltp/testcases/kernel/syscalls/statx/
Dstatx02.c32 #define TESTFILE "test_temp" macro
66 TEST(statx(AT_FDCWD, TESTFILE, 0, 0, &fbuf)); in test_sym_link()
70 "statx(AT_FDCWD, %s, 0, 0, &fbuf)", TESTFILE); in test_sym_link()
73 "statx(AT_FDCWD, %s, 0, 0, &fbuf)", TESTFILE); in test_sym_link()
109 file_fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, MODE); in setup()
112 SAFE_SYMLINK(TESTFILE, LINK_FILE); in setup()
Dstatx01.c47 #define TESTFILE "test_file" macro
60 TEST(statx(AT_FDCWD, TESTFILE, 0, 0, &buff)); in test_normal_file()
63 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE); in test_normal_file()
66 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE); in test_normal_file()
153 file_fd = SAFE_OPEN(TESTFILE, O_RDWR|O_CREAT, MODE); in setup()
/external/ltp/testcases/kernel/syscalls/getxattr/
Dgetxattr03.c53 #define TESTFILE "getxattr03testfile" macro
71 TEST(getxattr(TESTFILE, XATTR_TEST_KEY, NULL, 0)); in main()
92 fd = SAFE_CREAT(cleanup, TESTFILE, 0644); in setup()
95 if (setxattr(TESTFILE, XATTR_TEST_KEY, XATTR_TEST_VALUE, in setup()
102 TESTFILE); in setup()
/external/ltp/testcases/kernel/syscalls/listxattr/
Dlistxattr01.c34 #define TESTFILE "testfile" macro
51 TEST(listxattr(TESTFILE, buf, sizeof(buf))); in verify_listxattr()
68 SAFE_TOUCH(TESTFILE, 0644, NULL); in setup()
70 SAFE_SETXATTR(TESTFILE, SECURITY_KEY1, VALUE, VALUE_SIZE, XATTR_CREATE); in setup()
Dlistxattr02.c39 #define TESTFILE "testfile" macro
48 {TESTFILE, 1, ERANGE},
79 SAFE_TOUCH(TESTFILE, 0644, NULL); in setup()
81 SAFE_SETXATTR(TESTFILE, SECURITY_KEY, VALUE, VALUE_SIZE, XATTR_CREATE); in setup()
/external/ltp/testcases/kernel/syscalls/llistxattr/
Dllistxattr01.c35 #define TESTFILE "testfile" macro
76 SAFE_TOUCH(TESTFILE, 0644, NULL); in setup()
78 SAFE_SYMLINK(TESTFILE, SYMLINK); in setup()
80 SAFE_LSETXATTR(TESTFILE, SECURITY_KEY1, VALUE, VALUE_SIZE, XATTR_CREATE); in setup()
/external/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate04.c39 #define TESTFILE MNTPOINT"/testfile" macro
93 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_NONBLOCK); in doparent()
114 fd = SAFE_OPEN(TESTFILE, O_RDWR); in dochild()
136 if (tst_fill_file(TESTFILE, 0, 1024, 8)) in verify_ftruncate()
139 SAFE_CHMOD(TESTFILE, 02666); in verify_ftruncate()
/external/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c63 #define TESTFILE "testfile" macro
95 { &curfd, TESTFILE, &curfd, NEW_TESTFILE, 0 },
96 { &olddirfd, TESTFILE, &newdirfd, NEW_TESTFILE, 0 },
98 { &badfd, TESTFILE, &badfd, NEW_TESTFILE, EBADF },
99 { &filefd, TESTFILE, &filefd, NEW_TESTFILE, ENOTDIR },
157 SAFE_TOUCH(cleanup, TESTFILE, FILEMODE, NULL); in setup()
/external/ltp/testcases/kernel/syscalls/lstat/
Dlstat01.c23 #define TESTFILE "tst_file" macro
61 SAFE_TOUCH(TESTFILE, 0644, NULL); in setup()
62 SAFE_SYMLINK(TESTFILE, TESTSYML); in setup()
/external/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod02.c41 TESTFILE, file_mode, PERMS); in verify_fchmod()
56 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup()
57 SAFE_CHOWN(TESTFILE, ltpuser->pw_uid, ltpgroup->gr_gid); in setup()

123