/external/ltp/testcases/kernel/syscalls/truncate/ |
D | truncate02.c | 81 #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 …]
|
D | truncate01.c | 82 #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/ftruncate/ |
D | ftruncate02.c | 80 #define TESTFILE "testfile" /* file under test */ macro 122 "ftruncate(%s) to size %d failed", TESTFILE, in main() 133 TESTFILE, errno); in main() 145 TESTFILE, errno); in main() 167 TESTFILE, errno); in main() 179 TESTFILE, errno); in main() 208 "on %s Failed", TESTFILE); in main() 212 "on %s successful", TESTFILE); in main() 221 "on %s Failed", TESTFILE); in main() 225 "on %s successful", TESTFILE); in main() [all …]
|
D | ftruncate01.c | 80 #define TESTFILE "testfile" /* file under test */ macro 115 TESTFILE); in main() 125 TESTFILE, errno); in main() 137 "Expected %d", TESTFILE, in main() 141 "on %s successful", TESTFILE); in main() 174 fildes = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup() 180 TESTFILE); in setup() 199 tst_brkm(TFAIL | TERRNO, NULL, "close(%s) failed", TESTFILE); in cleanup()
|
D | ftruncate03.c | 55 #define TESTFILE "ftruncate03_tst_file" macro 108 unlink(TESTFILE); in main() 110 wjh_f = open(TESTFILE, O_RDWR | O_CREAT, 0644); in main() 113 TESTFILE); in main() 134 wjh_f = open(TESTFILE, flag); in main() 137 TESTFILE); in main() 152 "%d (wanted 0)", TESTFILE, wjh_ret); in main()
|
/external/ltp/testcases/kernel/syscalls/stat/ |
D | stat02.c | 83 #define TESTFILE "testfile" macro 117 TEST(stat(TESTFILE, &stat_buf)); in main() 122 TESTFILE, TEST_ERRNO, strerror(TEST_ERRNO)); in main() 135 TESTFILE); in main() 139 TESTFILE); in main() 185 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 188 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup() 200 TESTFILE); in setup() 207 tst_resm(TWARN | TERRNO, "closing %s failed", TESTFILE); in setup() 211 SAFE_CHMOD(cleanup, TESTFILE, NEW_MODE); in setup()
|
/external/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod03.c | 90 #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()
|
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 | chmod01.c | 82 #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/ |
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()
|
/external/ltp/testcases/kernel/syscalls/chown/ |
D | chown03.c | 89 #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()
|
D | chown05.c | 83 #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/ |
D | Makefile | 35 TESTFILE = Makefile macro 94 ./doubleBuffer$(EXT) $(TESTFILE) 96 ./ringBuffer$(EXT) $(TESTFILE) 98 ./ringBufferHC$(EXT) $(TESTFILE) 100 ./lineCompress$(EXT) $(TESTFILE) 102 ./dictionaryRandomAccess$(EXT) $(TESTFILE) $(TESTFILE) 1100 1400 104 ./frameCompress$(EXT) $(TESTFILE) 105 $(LZ4) -vt $(TESTFILE).lz4
|
/external/ltp/testcases/kernel/syscalls/fchownat/ |
D | fchownat01.c | 41 #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/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})
|
/external/ltp/testcases/kernel/syscalls/readlink/ |
D | readlink01.c | 28 #define TESTFILE "test_file" macro 36 int exp_val = strlen(TESTFILE); in test_readlink() 50 if (memcmp(buffer, TESTFILE, exp_val) != 0) { in test_readlink() 52 TESTFILE, buffer); in test_readlink() 87 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, 0444); in setup() 89 SAFE_SYMLINK(TESTFILE, SYMFILE); in setup()
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown03.c | 48 #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()
|
D | fchown05.c | 39 #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/ |
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 | 47 #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/ |
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()
|
/external/ltp/testcases/kernel/syscalls/lstat/ |
D | lstat03.c | 44 #define TESTFILE "testfile" macro 83 (stat_buf.st_size != strlen(TESTFILE))) { in main() 109 if (tst_fill_file(TESTFILE, 'a', 1024, 1)) in setup() 110 tst_brkm(TBROK, cleanup, "Failed to create " TESTFILE); in setup() 112 SAFE_SYMLINK(cleanup, TESTFILE, SFILE); in setup()
|
/external/ltp/testcases/kernel/syscalls/listxattr/ |
D | listxattr01.c | 46 #define TESTFILE "testfile" macro 63 TEST(listxattr(TESTFILE, buf, sizeof(buf))); in verify_listxattr() 80 SAFE_TOUCH(TESTFILE, 0644, NULL); in setup() 82 SAFE_SETXATTR(TESTFILE, SECURITY_KEY1, VALUE, VALUE_SIZE, XATTR_CREATE); in setup()
|
D | listxattr02.c | 51 #define TESTFILE "testfile" macro 60 {TESTFILE, 1, ERANGE}, 91 SAFE_TOUCH(TESTFILE, 0644, NULL); in setup() 93 SAFE_SETXATTR(TESTFILE, SECURITY_KEY, VALUE, VALUE_SIZE, XATTR_CREATE); in setup()
|