HomeSort by relevance Sort by last modified time
    Searched refs:cleanup (Results 176 - 200 of 2398) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/ltp/testcases/kernel/syscalls/ipc/shmdt/
shmdt01.c 42 * call cleanup
110 tst_brkm(TBROK, cleanup, "memory reattach failed");
117 cleanup();
129 tst_brkm(TBROK | TERRNO, cleanup,
170 tst_brkm(TBROK, cleanup,
180 tst_sig(NOFORK, sighandler, cleanup);
197 tst_brkm(TBROK, cleanup, "Failed to create shared memory "
205 tst_brkm(TBROK, cleanup, "Couldn't attach shared memory");
213 * cleanup() - performs all the ONE TIME cleanup for this test at completio
216 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/kill/
kill06.c 35 * issue a FAIL message, break remaining tests and cleanup
41 * call cleanup
65 void cleanup(void);
100 tst_brkm(TBROK, cleanup, "Fork of first child failed");
106 tst_brkm(TBROK, cleanup, "Fork failed");
110 tst_brkm(TBROK, cleanup,
129 tst_brkm(TFAIL, cleanup, "%s failed - errno = "
152 cleanup();
175 tst_sig(FORK, DEF_HANDLER, cleanup);
181 * cleanup() - performs all the ONE TIME cleanup for this test at completio
184 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/link/
link02.c 50 static void cleanup(void);
65 SAFE_STAT(cleanup, OLDPATH, &fbuf);
66 SAFE_STAT(cleanup, NEWPATH, &lbuf);
76 SAFE_UNLINK(cleanup, NEWPATH);
97 cleanup();
103 tst_sig(NOFORK, DEF_HANDLER, cleanup);
109 SAFE_TOUCH(cleanup, OLDPATH, 0700, NULL);
112 static void cleanup(void) function
link06.c 46 static void cleanup(void);
83 cleanup();
91 tst_sig(NOFORK, DEF_HANDLER, cleanup);
100 SAFE_CHMOD(cleanup, ".", MODE_TO);
102 SAFE_TOUCH(cleanup, OLDPATH, 0777, NULL);
103 nobody_pwd = SAFE_GETPWNAM(cleanup, "nobody");
104 SAFE_SETEUID(cleanup, nobody_pwd->pw_uid);
107 static void cleanup(void) function
  /external/ltp/testcases/kernel/syscalls/pipe2/
pipe2_01.c 81 /* Function: cleanup */
96 void cleanup(void) function
117 /* Return: On failure - Exits by calling cleanup(). */
146 tst_brkm(TFAIL, cleanup, "pipe2(0) failed");
151 tst_brkm(TBROK, cleanup,
156 cleanup, "pipe2(0) set close-on-exit for fd[%d]",
164 tst_brkm(TFAIL, cleanup,
170 tst_brkm(TBROK, cleanup,
175 cleanup, "pipe2(O_CLOEXEC) does not set close-on-exit for fd[%d]",
182 cleanup();
    [all...]
pipe2_02.c 72 /* Function: cleanup */
87 void cleanup(void) function
108 /* Return: On failure - Exits by calling cleanup(). */
137 tst_brkm(TFAIL, cleanup, "pipe2(0) failed");
142 tst_brkm(TBROK, cleanup,
147 cleanup, "pipe2(0) set non-blocking mode for fds[%d]",
154 tst_brkm(TFAIL, cleanup,
160 tst_brkm(TBROK, cleanup,
165 cleanup, "pipe2(O_NONBLOCK) does not set non-blocking mode for fds[%d]\n",
171 cleanup();
    [all...]
  /external/ltp/testcases/kernel/syscalls/read/
read04.c 56 void cleanup(void);
86 tst_brkm(TBROK, cleanup, "can't open for reading");
107 SAFE_CLOSE(cleanup, rfild);
110 cleanup();
120 tst_sig(NOFORK, DEF_HANDLER, cleanup);
131 tst_brkm(TBROK, cleanup, "creat(%s, 0777) Failed, errno = %d"
135 tst_brkm(TBROK, cleanup, "can't write to Xread");
141 * cleanup() - performs all ONE TIME cleanup for this test at completion or
144 void cleanup(void function
    [all...]
  /external/ltp/testcases/kernel/syscalls/setgid/
setgid02.c 42 static void cleanup(void);
57 tst_brkm(TBROK, cleanup, "getpwnam failed for user id "
61 GID16_CHECK(rootpwent->pw_gid, setgid, cleanup);
63 TEST(SETGID(cleanup, rootpwent->pw_gid));
78 cleanup();
89 tst_brkm(TBROK, cleanup, "getpwnam failed for user id %s",
104 tst_sig(NOFORK, DEF_HANDLER, cleanup);
109 static void cleanup(void) function
  /external/ltp/testcases/kernel/syscalls/setitimer/
setitimer01.c 36 * call cleanup
59 void cleanup(void);
88 tst_brkm(TBROK, cleanup, "value malloc failed");
93 tst_brkm(TBROK, cleanup, "ovalue malloc failed");
123 tst_brkm(TBROK, cleanup, "second setitimer "
130 tst_brkm(TFAIL, cleanup, "old timer value is "
135 cleanup();
145 tst_sig(NOFORK, DEF_HANDLER, cleanup);
151 * cleanup() - performs all the ONE TIME cleanup for this test at completio
154 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/signalfd4/
signalfd4_01.c 78 /* Function: cleanup */
93 void cleanup(void) function
114 /* Return: On failure - Exits by calling cleanup(). */
148 tst_brkm(TFAIL, cleanup,
153 tst_brkm(TBROK, cleanup, "fcntl failed");
157 cleanup,
166 cleanup,
171 tst_brkm(TBROK, cleanup, "fcntl failed");
175 cleanup,
180 cleanup();
    [all...]
signalfd4_02.c 73 /* Function: cleanup */
88 void cleanup(void) function
109 /* Return: On failure - Exits by calling cleanup(). */
143 tst_brkm(TFAIL, cleanup,
148 tst_brkm(TBROK, cleanup, "fcntl failed");
152 cleanup,
161 cleanup,
166 tst_brkm(TBROK, cleanup, "fcntl failed");
170 cleanup,
175 cleanup();
    [all...]
  /external/ltp/testcases/kernel/syscalls/sigsuspend/
sigsuspend01.c 49 * Cleanup:
91 void cleanup(); /* cleanup function for the test */
141 cleanup();
156 tst_sig(FORK, DEF_HANDLER, cleanup);
165 tst_brkm(TFAIL, cleanup,
170 tst_brkm(TFAIL, cleanup,
178 tst_brkm(TFAIL, cleanup,
185 tst_brkm(TFAIL, cleanup,
206 * cleanup() - performs all ONE TIME cleanup for this test a
209 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/statvfs/
statvfs02.c 44 static void cleanup(void);
75 cleanup();
81 tst_sig(NOFORK, DEF_HANDLER, cleanup);
87 SAFE_SYMLINK(cleanup, TEST_SYMLINK, "statfs_symlink_2");
88 SAFE_SYMLINK(cleanup, "statfs_symlink_2", TEST_SYMLINK);
92 SAFE_TOUCH(cleanup, TEST_FILE, 0644, NULL);
94 test_cases[0].path = SAFE_MMAP(cleanup, NULL, 1, PROT_NONE,
116 static void cleanup(void) function
  /external/ltp/testcases/kernel/syscalls/timerfd/
timerfd02.c 77 /* Function: cleanup */
92 void cleanup(void) function
113 /* Return: On failure - Exits by calling cleanup(). */
144 tst_brkm(TFAIL, cleanup,
149 tst_brkm(TBROK, cleanup, "fcntl failed");
153 cleanup,
162 cleanup,
167 tst_brkm(TBROK, cleanup, "fcntl failed");
171 cleanup,
176 cleanup();
    [all...]
timerfd03.c 73 /* Function: cleanup */
88 void cleanup(void) function
109 /* Return: On failure - Exits by calling cleanup(). */
140 tst_brkm(TFAIL, cleanup,
145 tst_brkm(TBROK, cleanup, "fcntl failed");
149 cleanup,
158 cleanup,
163 tst_brkm(TBROK, cleanup, "fcntl failed");
167 cleanup,
172 cleanup();
    [all...]
  /external/ltp/testcases/kernel/syscalls/chown/
chown03.c 52 * Cleanup:
97 void cleanup(); /* cleanup function for the test */
114 UID16_CHECK((user_id = geteuid()), "chown", cleanup)
115 GID16_CHECK((group_id = getegid()), "chown", cleanup)
117 TEST(CHOWN(cleanup, TESTFILE, -1, group_id));
126 tst_brkm(TFAIL | TERRNO, cleanup,
147 cleanup();
166 tst_sig(FORK, DEF_HANDLER, cleanup);
178 tst_brkm(TBROK | TERRNO, cleanup,
193 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/lchown/
lchown03.c 65 static void cleanup(void);
82 cleanup();
93 tst_sig(NOFORK, DEF_HANDLER, cleanup);
100 device = tst_acquire_device(cleanup);
103 tst_brkm(TCONF, cleanup, "Failed to acquire device");
105 SAFE_MKDIR(cleanup, "test_eloop", DIR_MODE);
106 SAFE_SYMLINK(cleanup, "../test_eloop", "test_eloop/test_eloop");
110 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
111 SAFE_MKDIR(cleanup, TEST_EROFS, DIR_MODE);
112 SAFE_MOUNT(cleanup, device, TEST_EROFS, fs_type, MS_RDONLY, NULL)
139 static void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/mknod/
mknod07.c 86 static void cleanup(void);
104 cleanup();
116 tst_sig(NOFORK, DEF_HANDLER, cleanup);
121 device = tst_acquire_device(cleanup);
124 tst_brkm(TCONF, cleanup, "Failed to acquire device");
126 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
131 SAFE_MKDIR(cleanup, MNT_POINT, DIR_MODE);
132 SAFE_MOUNT(cleanup, device, MNT_POINT, fs_type, MS_RDONLY, NULL);
135 ltpuser = SAFE_GETPWNAM(cleanup, "nobody");
136 SAFE_SETEUID(cleanup, ltpuser->pw_uid)
169 static void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/mmap/
mmap10.c 78 void cleanup(void);
117 cleanup();
130 tst_brkm(TBROK | TERRNO, cleanup, "open");
135 tst_brkm(TFAIL | TERRNO, cleanup, "mmap");
139 tst_brkm(TBROK | TERRNO, cleanup, "madvise");
146 tst_brkm(TBROK | TERRNO, cleanup, "fork");
149 tst_brkm(TFAIL | TERRNO, cleanup, "munmap");
157 tst_brkm(TBROK | TERRNO, cleanup, "fork");
160 tst_brkm(TFAIL | TERRNO, cleanup,
166 tst_brkm(TBROK | TERRNO, cleanup, "fork")
187 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/mount/
mount06.c 48 static void cleanup(void);
72 SAFE_MOUNT(cleanup, device, mntpoint_src, fs_type, 0, NULL);
87 tst_brkm(TBROK | TTERRNO, cleanup,
92 cleanup();
120 tst_sig(NOFORK, DEF_HANDLER, cleanup);
125 device = tst_acquire_device(cleanup);
128 tst_brkm(TCONF, cleanup, "Failed to obtain block device");
130 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
133 tst_brkm(TBROK, cleanup, "getcwd failed");
139 SAFE_MOUNT(cleanup, path_name, path_name, "none", MS_BIND, NULL)
154 static void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/sendfile/
sendfile09.c 67 static void cleanup(void);
91 out_fd = SAFE_OPEN(cleanup, out_file, O_WRONLY);
92 in_fd = SAFE_OPEN(cleanup, in_file, O_RDONLY);
93 before_pos = SAFE_LSEEK(cleanup, in_fd, 0, SEEK_CUR);
97 tst_brkm(TBROK | TTERRNO, cleanup, "sendfile(2) failed");
99 after_pos = SAFE_LSEEK(cleanup, in_fd, 0, SEEK_CUR);
132 tst_sig(FORK, DEF_HANDLER, cleanup);
139 tst_brkm(TCONF, cleanup, "sendfile(2) on large file"
143 fd = SAFE_CREAT(cleanup, in_file, 00700);
145 SAFE_LSEEK(cleanup, fd, 1024 * 1024 - 1, SEEK_CUR)
154 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/unshare/
unshare01.c 107 /* Function: cleanup */
122 void cleanup(void) function
142 /* Return: On failure - Exits by calling cleanup(). */
172 tst_brkm(TFAIL | TERRNO, cleanup,
191 SAFE_WAIT(cleanup, &rval);
195 tst_brkm(TCONF, cleanup,
200 tst_brkm(TFAIL, cleanup,
208 tst_brkm(TFAIL | TERRNO, cleanup,
227 SAFE_WAIT(cleanup, &rval);
231 tst_brkm(TCONF, cleanup,
    [all...]
  /external/ltp/lib/tests/
tst_safe_macros.c 9 void cleanup(void) function
29 fd = SAFE_OPEN(cleanup, __FILE__ "~", O_RDWR);
30 SAFE_READ(cleanup, 0, fd, buf, 9);
32 SAFE_READ(cleanup, 1, fd, buf, 9);
34 SAFE_WRITE(cleanup, 0, -1, buf, 9);
  /external/ltp/testcases/kernel/containers/userns/
userns_helper.h 44 int parentmappid, void (*cleanup)(void))
55 tst_brkm(TBROK, cleanup, "invalid type parameter");
58 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644);
59 SAFE_WRITE(cleanup, 1, fd, content, strlen(content));
60 SAFE_CLOSE(cleanup, fd);
  /external/ltp/testcases/kernel/syscalls/acct/
acct01.c 59 static void cleanup(void);
101 cleanup();
127 ltpuser = SAFE_GETPWNAM(cleanup, "nobody");
129 fd = SAFE_CREAT(cleanup, TEST_FILE5, 0777);
130 SAFE_CLOSE(cleanup, fd);
133 tst_brkm(TBROK | TERRNO, cleanup, "acct failed unexpectedly");
137 tst_brkm(TBROK | TERRNO, cleanup, "acct(NULL) failed");
140 SAFE_SYMLINK(cleanup, TEST_FILE6, "test_file_eloop2");
141 SAFE_SYMLINK(cleanup, "test_file_eloop2", TEST_FILE6);
148 device = tst_acquire_device(cleanup);
202 static void cleanup(void) function
    [all...]

Completed in 3117 milliseconds

1 2 3 4 5 6 78 91011>>