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 = 0; /* total no. of bytes read from testfile */
118 TEST(truncate(TESTFILE, TRUNC_LEN1));
123 TESTFILE, TRUNC_LEN1, TEST_ERRNO,
127 * Get the testfile information using
130 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/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 97 #define TESTFILE "testfile"
120 * (sticky-bit set) on testfile.
122 TEST(chmod(TESTFILE, PERMS));
126 TESTFILE, PERMS);
130 * Get the testfile information using
133 if (stat(TESTFILE, &stat_buf) == -1)
141 TESTFILE, PERMS);
144 "expected 0%03o", TESTFILE,
185 fd = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE)
    [all...]
  /external/ltp/testcases/kernel/syscalls/readlink/
readlink01.c 77 #define TESTFILE "testfile"
85 const int exp_val = sizeof(TESTFILE) - 1; /* strlen of testfile */
122 * strlen() of testfile.
126 if (memcmp(buffer, TESTFILE, exp_val) != 0) {
129 TESTFILE, buffer);
151 * Create a symbolic link of testfile.
155 int fd; /* file handle for testfile */
170 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1)
    [all...]
readlink04.c 47 static char *TESTFILE = "./testfile";
84 if (memcmp(buffer, TESTFILE, exp_val) != 0) {
85 tst_brkm(TFAIL, cleanup, "TESTFILE %s "
87 "differ", TESTFILE, buffer);
132 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1)
133 tst_brkm(TBROK|TERRNO, cleanup, "open(%s) failed", TESTFILE);
136 tst_brkm(TBROK|TERRNO, cleanup, "close(%s) failed", TESTFILE);
138 SAFE_SYMLINK(cleanup, TESTFILE, SYMFILE);
141 exp_val = strlen(TESTFILE);
    [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 = 0; /* total no. of bytes read from testfile */
121 "ftruncate(%s) to size %d failed", TESTFILE,
126 * Get the testfile information using
132 TESTFILE, errno);
138 * 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...]
  /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/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/lz4/examples/
Makefile 34 TESTFILE= Makefile
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/
fchmod07.c 80 #define TESTFILE "testfile"
82 int fd; /* file descriptor for testfile */
113 * bits to set it for "testfile".
124 * Get the testfile information using
131 TESTFILE, TEST_ERRNO);
137 * on testfile.
147 TESTFILE, stat_buf.st_mode,
172 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) {
175 TESTFILE, FILE_MODE, errno, strerror(errno))
    [all...]
fchmod02.c 97 #define TESTFILE "testfile"
121 * (sticky-bit set) on testfile.
131 * Get the testfile information using
136 "failed, errno:%d", TESTFILE,
146 "Expected 0%03o", TESTFILE,
194 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) {
197 TESTFILE, FILE_MODE, errno, strerror(errno));
200 SAFE_CHOWN(cleanup, TESTFILE, user1_uid, group1_gid);
210 * Close the testfile created in the setup
    [all...]
  /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 420 milliseconds

1 2 3