HomeSort by relevance Sort by last modified time
    Searched refs:TESTFILE (Results 1 - 25 of 52) sorted by null

1 2 3

  /external/protobuf/src/google/protobuf/io/
gzip_stream_unittest.sh 38 TESTFILE=Makefile
40 (./zcgzip < ${TESTFILE} | gunzip | cmp - ${TESTFILE}) && \
41 (gzip < ${TESTFILE} | ./zcgunzip | cmp - ${TESTFILE})
  /external/ltp/testcases/kernel/syscalls/truncate/
truncate02.c 81 #define TESTFILE "testfile" /* file under test */
90 int fd; /* file descriptor of testfile */
91 char tst_buff[BUF_SIZE]; /* buffer to hold testfile contents */
102 int rbytes; /* bytes read from testfile */
103 int read_len; /* total no. of bytes read from testfile */
119 TEST(truncate(TESTFILE, TRUNC_LEN1));
124 TESTFILE, TRUNC_LEN1, TEST_ERRNO,
128 * Get the testfile information using
131 if (stat(TESTFILE, &stat_buf) < 0)
    [all...]
truncate01.c 82 #define TESTFILE "testfile" /* file under test */
112 TEST(truncate(TESTFILE, TRUNC_LEN));
117 TESTFILE, TRUNC_LEN, TEST_ERRNO,
121 * Get the testfile information using
124 if (stat(TESTFILE, &stat_buf) < 0) {
127 TESTFILE, errno);
133 * Check for expected size of testfile after
139 ", Expected %d", TESTFILE,
145 TESTFILE, TRUNC_LEN)
    [all...]
  /external/ltp/testcases/kernel/syscalls/fchmod/
fchmod.h 13 #define TESTFILE "testfile"
fchmod02.c 41 TESTFILE, file_mode, PERMS);
56 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, FILE_MODE);
57 SAFE_CHOWN(TESTFILE, ltpuser->pw_uid, ltpgroup->gr_gid);
  /external/ltp/testcases/kernel/syscalls/chmod/
chmod03.c 90 #define TESTFILE "testfile"
114 TEST(chmod(TESTFILE, PERMS));
118 TESTFILE, PERMS);
121 if (stat(TESTFILE, &stat_buf) < 0) {
123 "stat(%s) failed", TESTFILE);
127 /* Verify STICKY BIT set on testfile */
130 "Expected 0777", TESTFILE, file_mode);
134 TESTFILE, PERMS);
163 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1)
    [all...]
chmod01.c 82 #define TESTFILE "testfile"
112 TEST(chmod(TESTFILE, mode));
116 "chmod(%s, %#o) failed", TESTFILE,
120 if (stat(TESTFILE, &stat_buf) < 0)
122 "stat(%s) failed", TESTFILE);
128 TESTFILE, mode);
132 TESTFILE, stat_buf.st_mode,
151 fd = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE);
chmod07.c 36 #define TESTFILE "testfile"
44 * (sticky-bit set) on testfile.
46 TEST(chmod(TESTFILE, PERMS));
49 TESTFILE, PERMS);
52 if (stat(TESTFILE, &stat_buf) == -1) {
59 TESTFILE, PERMS);
62 TESTFILE, stat_buf.st_mode, PERMS);
80 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, FILE_MODE);
82 SAFE_CHOWN(TESTFILE, user1_uid, group1_gid)
    [all...]
  /external/ltp/testcases/kernel/syscalls/symlink/
symlink04.c 81 #define TESTFILE "testfile"
106 * testfile.
108 TEST(symlink(TESTFILE, SYMFILE));
112 TESTFILE, SYMFILE, TEST_ERRNO,
129 TESTFILE);
133 TESTFILE, SYMFILE);
155 int fd; /* file handle for testfile */
168 /* creat/open a testfile */
169 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1)
    [all...]
symlink05.c 82 #define TESTFILE "testfile"
106 * an non-existing testfile.
108 TEST(symlink(TESTFILE, SYMFILE));
113 TESTFILE, SYMFILE, TEST_ERRNO,
130 TESTFILE);
134 TESTFILE, SYMFILE);
  /external/ltp/testcases/kernel/syscalls/stat/
stat02.c 83 #define TESTFILE "testfile"
117 TEST(stat(TESTFILE, &stat_buf));
122 TESTFILE, TEST_ERRNO, strerror(TEST_ERRNO));
135 TESTFILE);
139 TESTFILE);
153 * Creat a testfile and write some data into it.
154 * Modify the mode permissions of testfile such that test process
155 * has read-only access to testfile.
185 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1)
    [all...]
  /external/ltp/testcases/kernel/syscalls/ftruncate/
ftruncate02.c 80 #define TESTFILE "testfile" /* file under test */
89 int fd; /* file descriptor of testfile */
90 char tst_buff[BUF_SIZE]; /* buffer to hold testfile contents */
101 int rbytes, i; /* bytes read from testfile */
102 int read_len; /* total no. of bytes read from testfile */
122 "ftruncate(%s) to size %d failed", TESTFILE,
127 * Get the testfile information using
133 TESTFILE, errno);
139 * Set the file pointer of testfile to th
    [all...]
ftruncate01.c 80 #define TESTFILE "testfile" /* file under test */
115 TESTFILE);
119 * Get the testfile information using
125 TESTFILE, errno);
131 * Check for expected size of testfile after
137 "Expected %d", TESTFILE,
141 "on %s successful", TESTFILE);
174 fildes = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE);
180 TESTFILE);
    [all...]
ftruncate03.c 55 #define TESTFILE "ftruncate03_tst_file"
108 unlink(TESTFILE);
110 wjh_f = open(TESTFILE, O_RDWR | O_CREAT, 0644);
113 TESTFILE);
134 wjh_f = open(TESTFILE, flag);
137 TESTFILE);
152 "%d (wanted 0)", TESTFILE, wjh_ret);
  /external/ltp/testcases/kernel/syscalls/listxattr/
listxattr01.c 46 #define TESTFILE "testfile"
63 TEST(listxattr(TESTFILE, buf, sizeof(buf)));
80 SAFE_TOUCH(TESTFILE, 0644, NULL);
82 SAFE_SETXATTR(TESTFILE, SECURITY_KEY1, VALUE, VALUE_SIZE, XATTR_CREATE);
listxattr02.c 51 #define TESTFILE "testfile"
60 {TESTFILE, 1, ERANGE},
91 SAFE_TOUCH(TESTFILE, 0644, NULL);
93 SAFE_SETXATTR(TESTFILE, SECURITY_KEY, VALUE, VALUE_SIZE, XATTR_CREATE);
  /external/ltp/testcases/kernel/syscalls/readlink/
readlink01.c 28 #define TESTFILE "test_file"
36 int exp_val = strlen(TESTFILE);
50 if (memcmp(buffer, TESTFILE, exp_val) != 0) {
52 TESTFILE, buffer);
87 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, 0444);
89 SAFE_SYMLINK(TESTFILE, SYMFILE);
  /external/ltp/testcases/kernel/syscalls/statx/
statx02.c 17 * Predefined size of testfile is checked against obtained value.
32 #define TESTFILE "test_temp"
66 TEST(statx(AT_FDCWD, TESTFILE, 0, 0, &fbuf));
70 "statx(AT_FDCWD, %s, 0, 0, &fbuf)", TESTFILE);
73 "statx(AT_FDCWD, %s, 0, 0, &fbuf)", TESTFILE);
109 file_fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, MODE);
112 SAFE_SYMLINK(TESTFILE, LINK_FILE);
  /external/ltp/testcases/kernel/syscalls/fchown/
fchown03.c 48 #define TESTFILE "testfile"
81 TESTFILE, TEST_ERRNO);
91 TESTFILE, user_id, group_id);
97 " %#o, Expected %#o", TESTFILE,
101 "Setuid/gid bits cleared", TESTFILE);
122 fildes = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE);
136 tst_resm(TWARN | TERRNO, "close(%s) Failed", TESTFILE);
  /external/ltp/testcases/kernel/syscalls/fchownat/
fchownat01.c 41 #define TESTFILE "testfile"
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);
  /external/ltp/testcases/kernel/syscalls/chown/
chown03.c 89 #define TESTFILE "testfile"
117 TEST(CHOWN(cleanup, TESTFILE, -1, group_id));
121 TESTFILE);
125 if (stat(TESTFILE, &stat_buf) == -1)
133 TESTFILE, stat_buf.st_uid,
139 " %#o, Expected %#o", TESTFILE,
144 TESTFILE);
156 * Change the group ownership on testfile.
160 int fd; /* file handler for testfile */
    [all...]
chown05.c 83 #define TESTFILE "testfile"
108 uid_t user_id; /* user id of the user set for testfile */
109 gid_t group_id; /* group id of the user set for testfile */
123 TEST(CHOWN(cleanup, TESTFILE, user_id, group_id));
129 if (stat(TESTFILE, &stat_buf) == -1)
140 "%d", TESTFILE, user_id,
163 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1)
165 TESTFILE);
  /external/ltp/testcases/kernel/syscalls/getxattr/
getxattr03.c 53 #define TESTFILE "getxattr03testfile"
71 TEST(getxattr(TESTFILE, XATTR_TEST_KEY, NULL, 0));
92 fd = SAFE_CREAT(cleanup, TESTFILE, 0644);
95 if (setxattr(TESTFILE, XATTR_TEST_KEY, XATTR_TEST_VALUE,
102 TESTFILE);
  /external/ltp/testcases/kernel/syscalls/lstat/
lstat03.c 44 #define TESTFILE "testfile"
83 (stat_buf.st_size != strlen(TESTFILE))) {
109 if (tst_fill_file(TESTFILE, 'a', 1024, 1))
110 tst_brkm(TBROK, cleanup, "Failed to create " TESTFILE);
112 SAFE_SYMLINK(cleanup, TESTFILE, SFILE);
  /external/ltp/testcases/kernel/syscalls/llistxattr/
llistxattr01.c 45 #define TESTFILE "testfile"
86 SAFE_TOUCH(TESTFILE, 0644, NULL);
88 SAFE_SYMLINK(TESTFILE, SYMLINK);
90 SAFE_LSETXATTR(TESTFILE, SECURITY_KEY1, VALUE, VALUE_SIZE, XATTR_CREATE);

Completed in 498 milliseconds

1 2 3