/third_party/ltp/testcases/kernel/syscalls/truncate/ |
D | truncate02.c | 27 #define TESTFILE "testfile" macro 53 TEST(truncate(TESTFILE, tc->trunc_len)); in verify_truncate() 56 TESTFILE, tc->trunc_len); in verify_truncate() 63 TESTFILE, tc->trunc_len, TST_RET); in verify_truncate() 67 SAFE_STAT(TESTFILE, &stat_buf); in verify_truncate() 70 TESTFILE, stat_buf.st_size, tc->trunc_len); in verify_truncate() 76 TESTFILE, tc->trunc_len); in verify_truncate() 84 TESTFILE, read_buf[i], tc->exp_char); in verify_truncate() 90 TESTFILE, tc->trunc_len); in verify_truncate() 95 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, 0644); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod07.c | 36 #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()
|
D | chmod03.c | 26 #define TESTFILE "testfile" macro 33 {TESTFILE, "verify permissions of file"}, 67 SAFE_TOUCH(TESTFILE, FILE_MODE, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/symlink/ |
D | symlink04.c | 81 #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()
|
D | symlink05.c | 82 #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()
|
/third_party/lz4/examples/ |
D | Makefile | 35 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
|
/third_party/protobuf/src/google/protobuf/io/ |
D | gzip_stream_unittest.sh | 38 TESTFILE=Makefile 40 (./zcgzip < ${TESTFILE} | gunzip | cmp - ${TESTFILE}) && \ 41 (gzip < ${TESTFILE} | ./zcgunzip | cmp - ${TESTFILE})
|
/third_party/ltp/testcases/kernel/syscalls/fchownat/ |
D | fchownat01.c | 40 #define TESTFILE "testfile" macro 57 {0, 0, 0, &dir_fd, TESTFILE}, 58 {-1, ENOTDIR, 0, &fd, TESTFILE}, 59 {-1, EBADF, 0, &no_fd, TESTFILE}, 60 {-1, EINVAL, 9999, &dir_fd, TESTFILE}, 61 {0, 0, 0, &cu_fd, TESTFILE}, 100 SAFE_TOUCH(cleanup, TESTFILE, 0600, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/readlink/ |
D | readlink01.c | 19 #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()
|
/third_party/ltp/testcases/kernel/syscalls/chown/ |
D | chown05.c | 21 #define TESTFILE "testfile" macro 42 TST_EXP_PASS(CHOWN(TESTFILE, tc[i].uid, tc[i].gid), "chown(%s, %d, %d), %s", in run() 43 TESTFILE, tc[i].uid, tc[i].gid, tc[i].desc); in run() 45 SAFE_STAT(TESTFILE, &stat_buf); in run() 48 TESTFILE, expect_uid, expect_gid); in run() 54 SAFE_TOUCH(TESTFILE, FILE_MODE, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
D | statx02.c | 32 #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()
|
D | statx01.c | 40 #define TESTFILE "test_file" macro 96 TEST(statx(AT_FDCWD, TESTFILE, 0, 0, &buff)); in test_normal_file() 99 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE); in test_normal_file() 102 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE); in test_normal_file() 200 file_fd = SAFE_OPEN(TESTFILE, O_RDWR|O_CREAT, MODE); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/getxattr/ |
D | getxattr03.c | 53 #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()
|
/third_party/ltp/testcases/kernel/syscalls/lstat/ |
D | lstat01.c | 23 #define TESTFILE "tst_file" macro 42 stat_buf.st_size != strlen(TESTFILE)) { in run() 56 SAFE_TOUCH(TESTFILE, 0644, NULL); in setup() 57 SAFE_SYMLINK(TESTFILE, TESTSYML); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/listxattr/ |
D | listxattr01.c | 34 #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()
|
D | listxattr02.c | 39 #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()
|
/third_party/ltp/testcases/kernel/syscalls/llistxattr/ |
D | llistxattr01.c | 35 #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()
|
D | llistxattr02.c | 39 #define TESTFILE "testfile" macro 80 SAFE_TOUCH(TESTFILE, 0644, NULL); in setup() 82 SAFE_SYMLINK(TESTFILE, SYMLINK); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/ftruncate/ |
D | ftruncate04.c | 39 #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()
|
D | ftruncate01.c | 23 #define TESTFILE "testfile" macro 86 if (tst_fill_file(TESTFILE, 'a', FILE_SIZE, 1)) in setup() 89 fd = SAFE_OPEN(TESTFILE, O_RDWR); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/renameat/ |
D | renameat01.c | 62 #define TESTFILE "testfile" macro 94 { &curfd, TESTFILE, &curfd, NEW_TESTFILE, 0 }, 95 { &olddirfd, TESTFILE, &newdirfd, NEW_TESTFILE, 0 }, 97 { &badfd, TESTFILE, &badfd, NEW_TESTFILE, EBADF }, 98 { &filefd, TESTFILE, &filefd, NEW_TESTFILE, ENOTDIR }, 156 SAFE_TOUCH(cleanup, TESTFILE, FILEMODE, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/fork/ |
D | fork07.c | 25 #define TESTFILE "testfile_fork07" macro 34 fd = SAFE_OPEN(TESTFILE, O_RDONLY); in run() 57 tst_fill_file(TESTFILE, 'a', NFORKS, 1); in setup()
|
D | fork08.c | 19 #define TESTFILE "testfile_fork08" macro 28 fd = SAFE_OPEN(TESTFILE, O_RDONLY); in run() 55 tst_fill_file(TESTFILE, 'a', 1, 1); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod02.c | 41 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()
|
/third_party/ltp/testcases/kernel/syscalls/fstat/ |
D | fstat02.c | 19 #define TESTFILE "test_file" macro 77 fildes = SAFE_OPEN(TESTFILE, O_WRONLY | O_CREAT, FILE_MODE); in setup() 79 if (tst_fill_file(TESTFILE, 'a', FILE_SIZE, 1)) in setup()
|