/external/ltp/testcases/kernel/syscalls/truncate/ |
D | truncate02.c | 81 #define TESTFILE "testfile" /* file under test */ macro 118 TEST(truncate(TESTFILE, TRUNC_LEN1)); in main() 123 TESTFILE, TRUNC_LEN1, TEST_ERRNO, in main() 130 if (stat(TESTFILE, &stat_buf) < 0) { in main() 133 "error:%d", TESTFILE, errno); in main() 144 "error:%d", TESTFILE, errno); in main() 157 TEST(truncate(TESTFILE, TRUNC_LEN2)); in main() 162 TESTFILE, TRUNC_LEN2, in main() 171 if (stat(TESTFILE, &stat_buf) < 0) { in main() 174 "error:%d", TESTFILE, errno); in main() [all …]
|
D | truncate01.c | 81 #define TESTFILE "testfile" /* file under test */ macro 111 TEST(truncate(TESTFILE, TRUNC_LEN)); in main() 116 TESTFILE, TRUNC_LEN, TEST_ERRNO, in main() 123 if (stat(TESTFILE, &stat_buf) < 0) { in main() 126 TESTFILE, errno); in main() 138 ", Expected %d", TESTFILE, in main() 144 TESTFILE, TRUNC_LEN); 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() 196 TESTFILE, errno, strerror(errno)); in setup() [all …]
|
/external/ltp/testcases/kernel/syscalls/ftruncate/ |
D | ftruncate02.c | 79 #define TESTFILE "testfile" /* file under test */ macro 120 "ftruncate(%s) to size %d failed", TESTFILE, in main() 131 TESTFILE, errno); in main() 143 TESTFILE, errno); in main() 165 TESTFILE, errno); in main() 177 TESTFILE, errno); in main() 206 "on %s Failed", TESTFILE); in main() 210 "on %s successful", TESTFILE); in main() 219 "on %s Failed", TESTFILE); in main() 223 "on %s successful", TESTFILE); in main() [all …]
|
D | ftruncate01.c | 79 #define TESTFILE "testfile" /* file under test */ macro 114 TESTFILE); in main() 124 TESTFILE, errno); in main() 136 "Expected %d", TESTFILE, in main() 140 "on %s successful", TESTFILE); in main() 173 fildes = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup() 177 TESTFILE, FILE_MODE); in setup() 183 TESTFILE); in setup() 202 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/chmod/ |
D | chmod07.c | 96 #define TESTFILE "testfile" macro 121 TEST(chmod(TESTFILE, PERMS)); in main() 125 TESTFILE, PERMS); in main() 132 if (stat(TESTFILE, &stat_buf) == -1) in main() 140 TESTFILE, PERMS); in main() 143 "expected 0%03o", TESTFILE, in main() 184 fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup() 188 TESTFILE, FILE_MODE); in setup() 190 tst_brkm(TBROK, cleanup, "close(%s) failed", TESTFILE); in setup() 191 if (chown(TESTFILE, user1_uid, group1_gid) == -1) in setup() [all …]
|
D | chmod01.c | 81 #define TESTFILE "testfile" macro 111 TEST(chmod(TESTFILE, mode)); in main() 115 "chmod(%s, %#o) failed", TESTFILE, in main() 119 if (stat(TESTFILE, &stat_buf) < 0) in main() 121 "stat(%s) failed", TESTFILE); in main() 127 TESTFILE, mode); in main() 131 TESTFILE, stat_buf.st_mode, in main() 150 fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup() 154 TESTFILE, FILE_MODE); in setup() 156 tst_brkm(TBROK | TERRNO, cleanup, "close(%s) failed", TESTFILE); in setup()
|
D | chmod03.c | 89 #define TESTFILE "testfile" macro 113 TEST(chmod(TESTFILE, PERMS)); in main() 117 TESTFILE, PERMS); in main() 120 if (stat(TESTFILE, &stat_buf) < 0) { in main() 122 "stat(%s) failed", TESTFILE); in main() 129 "Expected 0777", TESTFILE, file_mode); in main() 133 TESTFILE, PERMS); in main() 164 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 167 TESTFILE, FILE_MODE); in setup() 171 tst_brkm(TBROK | TERRNO, cleanup, "close(%s) failed", TESTFILE); in setup()
|
/external/ltp/testcases/kernel/syscalls/stat/ |
D | stat02.c | 82 #define TESTFILE "testfile" macro 116 TEST(stat(TESTFILE, &stat_buf)); in main() 121 TESTFILE, TEST_ERRNO, strerror(TEST_ERRNO)); in main() 134 TESTFILE); in main() 138 TESTFILE); in main() 184 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 187 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup() 199 TESTFILE); in setup() 206 tst_resm(TWARN | TERRNO, "closing %s failed", TESTFILE); in setup() 210 if (chmod(TESTFILE, NEW_MODE) < 0) { in setup() [all …]
|
/external/ltp/testcases/kernel/syscalls/readlink/ |
D | readlink01.c | 76 #define TESTFILE "testfile" macro 84 const int exp_val = sizeof(TESTFILE) - 1; /* strlen of testfile */ 125 if (memcmp(buffer, TESTFILE, exp_val) != 0) { in main() 128 TESTFILE, buffer); in main() 171 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 174 TESTFILE, FILE_MODE); in setup() 178 tst_resm(TWARN | TERRNO, "close(%s) failed", TESTFILE); in setup() 182 if (symlink(TESTFILE, SYMFILE) < 0) { in setup() 184 TESTFILE, SYMFILE); in setup()
|
D | readlink04.c | 46 static char *TESTFILE = "./testfile"; variable 83 if (memcmp(buffer, TESTFILE, exp_val) != 0) { in main() 86 "differ", TESTFILE, buffer); in main() 132 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) in setup() 133 tst_brkm(TBROK|TERRNO, cleanup, "open(%s) failed", TESTFILE); in setup() 136 tst_brkm(TBROK|TERRNO, cleanup, "close(%s) failed", TESTFILE); in setup() 138 if (symlink(TESTFILE, SYMFILE) < 0) { in setup() 140 TESTFILE, SYMFILE); in setup() 144 exp_val = strlen(TESTFILE); in setup()
|
/external/ltp/testcases/kernel/syscalls/symlink/ |
D | symlink04.c | 80 #define TESTFILE "testfile" macro 107 TEST(symlink(TESTFILE, SYMFILE)); in main() 111 TESTFILE, SYMFILE, TEST_ERRNO, in main() 128 TESTFILE); in main() 132 TESTFILE, SYMFILE); in main() 172 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 175 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup() 181 TESTFILE, errno, strerror(errno)); in setup()
|
D | symlink05.c | 81 #define TESTFILE "testfile" macro 107 TEST(symlink(TESTFILE, SYMFILE)); in main() 112 TESTFILE, SYMFILE, TEST_ERRNO, in main() 129 TESTFILE); in main() 133 TESTFILE, SYMFILE); in main()
|
/external/ltp/testcases/kernel/syscalls/chown/ |
D | chown03.c | 88 #define TESTFILE "testfile" macro 116 TEST(CHOWN(cleanup, TESTFILE, -1, group_id)); in main() 120 TESTFILE); in main() 124 if (stat(TESTFILE, &stat_buf) == -1) in main() 132 TESTFILE, stat_buf.st_uid, in main() 138 " %#o, Expected %#o", TESTFILE, in main() 143 TESTFILE); in main() 180 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) in setup() 182 "open(%s, O_RDWR|O_CREAT, %o) failed", TESTFILE, in setup() 199 TESTFILE); in setup()
|
D | chown05.c | 82 #define TESTFILE "testfile" macro 122 TEST(CHOWN(cleanup, TESTFILE, user_id, group_id)); in main() 128 if (stat(TESTFILE, &stat_buf) == -1) in main() 139 "%d", TESTFILE, user_id, in main() 162 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) in setup() 164 TESTFILE); in setup() 166 tst_brkm(TBROK, cleanup, "closing %s failed", TESTFILE); in setup()
|
/external/lz4/examples/ |
D | Makefile | 34 TESTFILE= Makefile macro 82 ./doubleBuffer$(EXT) $(TESTFILE) 83 ./dictionaryRandomAccess$(EXT) $(TESTFILE) $(TESTFILE) 1100 1400 84 ./ringBuffer$(EXT) $(TESTFILE) 85 ./ringBufferHC$(EXT) $(TESTFILE) 86 ./lineCompress$(EXT) $(TESTFILE) 87 ./frameCompress$(EXT) $(TESTFILE) 88 $(LZ4) -vt $(TESTFILE).lz4
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod02.c | 96 #define TESTFILE "testfile" macro 135 "failed, errno:%d", TESTFILE, in main() 145 "Expected 0%03o", TESTFILE, in main() 193 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 196 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup() 199 if (chown(TESTFILE, user1_uid, group1_gid) < 0) { in setup() 200 tst_brkm(TBROK, cleanup, "chown(2) of %s failed", TESTFILE); in setup() 222 TESTFILE, errno, strerror(errno)); in cleanup()
|
D | fchmod07.c | 79 #define TESTFILE "testfile" macro 130 TESTFILE, TEST_ERRNO); in main() 146 TESTFILE, stat_buf.st_mode, in main() 171 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 174 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup() 192 TESTFILE, errno, strerror(errno)); in cleanup()
|
/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/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/ltp/testcases/kernel/syscalls/getxattr/ |
D | getxattr03.c | 52 #define TESTFILE "getxattr03testfile" macro 70 TEST(getxattr(TESTFILE, XATTR_TEST_KEY, NULL, 0)); in main() 91 fd = creat(TESTFILE, 0644); in setup() 93 tst_brkm(TBROK | TERRNO, cleanup, "Create %s failed", TESTFILE); in setup() 96 if (setxattr(TESTFILE, XATTR_TEST_KEY, XATTR_TEST_VALUE, in setup() 103 TESTFILE); 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/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/mem/vma/ |
D | vma03.c | 58 #define TESTFILE "testfile" macro 87 fd = open(TESTFILE, O_RDWR); in main() 89 tst_brkm(TBROK | TERRNO, NULL, "open %s", TESTFILE); in main() 134 fd = creat(TESTFILE, 0644); in setup() 136 tst_brkm(TBROK | TERRNO, NULL, "creat %s", TESTFILE); in setup()
|