/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/link/ |
link08.c | 61 static void cleanup(void); 96 cleanup(); 127 tst_sig(NOFORK, DEF_HANDLER, cleanup); 134 device = tst_acquire_device(cleanup); 137 tst_brkm(TCONF, cleanup, "Failed to acquire device"); 139 SAFE_MKDIR(cleanup, TEST_FILE1, DIR_MODE); 141 SAFE_MKDIR(cleanup, "test_eloop", DIR_MODE); 142 SAFE_SYMLINK(cleanup, "../test_eloop", "test_eloop/test_eloop"); 146 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 147 SAFE_MKDIR(cleanup, MNT_POINT, DIR_MODE) 156 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/mknod/ |
mknod02.c | 51 * Cleanup: 103 void cleanup(); /* cleanup function for the test */ 179 * Invoke cleanup() to delete the test directories created 182 cleanup(); 202 tst_sig(NOFORK, DEF_HANDLER, cleanup); 211 tst_brkm(TBROK, cleanup, "chmod() failed"); 225 tst_brkm(TBROK | TERRNO, cleanup, 240 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); 241 SAFE_CHOWN(cleanup, DIR_TEMP, user1_uid, group2_gid) 287 void cleanup(void) function [all...] |
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...] |
mknod08.c | 50 * Cleanup: 102 void cleanup(); /* cleanup function for the test */ 176 * Invoke cleanup() to delete the test directories created 179 cleanup(); 199 tst_sig(NOFORK, DEF_HANDLER, cleanup); 208 tst_brkm(TBROK, cleanup, "chmod() failed"); 222 tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER); 235 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); 236 SAFE_CHOWN(cleanup, DIR_TEMP, user1_uid, group2_gid) 282 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/pwrite/ |
pwrite02.c | 51 static void cleanup(void); 86 cleanup(); 114 tst_sig(NOFORK, DEF_HANDLER, cleanup); 119 tst_brkm(TBROK, cleanup, "signal() failed"); 149 SAFE_PIPE(cleanup, pipe_fds); 155 SAFE_CLOSE(cleanup, pipe_fds[0]); 156 SAFE_CLOSE(cleanup, pipe_fds[1]); 163 fd = SAFE_OPEN(cleanup, TEMPFILE, O_RDWR | O_CREAT, 0666); 170 SAFE_CLOSE(cleanup, fd); 186 fd = SAFE_OPEN(cleanup, TEMPFILE, O_RDONLY | O_CREAT, 0666) 211 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...] |
/external/ltp/testcases/kernel/syscalls/chmod/ |
chmod02.c | 59 static void cleanup(void); 89 cleanup(); 95 tst_sig(NOFORK, DEF_HANDLER, cleanup); 101 SAFE_FILE_PRINTF(cleanup, FNAME, "File content\n"); 104 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/chroot/ |
chroot04.c | 63 void cleanup(void); 90 cleanup(); 101 tst_sig(NOFORK, DEF_HANDLER, cleanup); 118 SAFE_SETEUID(cleanup, ltpuser->pw_uid); 123 * cleanup() - performs all ONE TIME cleanup for this test at 126 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/dup/ |
dup02.c | 105 * Cleanup: 120 void cleanup(); 156 SAFE_CLOSE(cleanup, TEST_RETURN); 161 cleanup(); 168 tst_sig(FORK, DEF_HANDLER, cleanup); 176 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl08.c | 48 static void cleanup(void); 78 cleanup(); 85 tst_sig(NOFORK, DEF_HANDLER, cleanup); 91 fd = SAFE_OPEN(cleanup, "test_file", O_RDWR | O_CREAT, 0700); 94 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/fork/ |
fork02.c | 50 static void cleanup(void); 70 tst_brkm(TBROK, cleanup, "fork() failed"); 87 cleanup(); 93 tst_sig(FORK, DEF_HANDLER, cleanup); 97 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/fstat/ |
fstat01.c | 106 * Cleanup: 122 void cleanup(); 151 cleanup(); 158 tst_sig(NOFORK, DEF_HANDLER, cleanup); 165 fd = SAFE_OPEN(cleanup, fname, O_RDWR | O_CREAT, 0700); 168 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/fsync/ |
fsync03.c | 53 void cleanup(void); 108 cleanup(); 119 tst_sig(NOFORK, DEF_HANDLER, cleanup); 126 SAFE_PIPE(cleanup, fd); 132 * cleanup() - performs all ONE TIME cleanup for this test at 135 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/getitimer/ |
getitimer03.c | 41 * call cleanup 67 void cleanup(void); 92 tst_brkm(TBROK, cleanup, "value malloc failed"); 129 cleanup(); 140 tst_sig(NOFORK, DEF_HANDLER, cleanup); 146 * cleanup() - performs all the ONE TIME cleanup for this test at completion 149 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/getpid/ |
getpid02.c | 46 * Cleanup: 77 void cleanup(); /* cleanup function for the test */ 111 SAFE_WAIT(cleanup, &status); 122 cleanup(); 129 tst_sig(FORK, DEF_HANDLER, cleanup); 134 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/getsid/ |
getsid01.c | 32 * issue a FAIL message, break remaining tests and cleanup 41 * call cleanup 65 void cleanup(void); 102 tst_brkm(TBROK, cleanup, "could not fork"); 137 cleanup(); 147 tst_sig(FORK, DEF_HANDLER, cleanup); 153 * cleanup() - performs all the ONE TIME cleanup for this test at completion 156 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
msgctl03.c | 41 * call cleanup 83 tst_brkm(TFAIL | TTERRNO, cleanup, "msgctl() call failed"); 102 cleanup(); 112 tst_sig(NOFORK, DEF_HANDLER, cleanup); 128 tst_brkm(TBROK, cleanup, "Can't create message queue"); 133 * cleanup() - performs all the ONE TIME cleanup for this test at completion 136 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/kill/ |
kill04.c | 34 * issue a FAIL message, break remaining tests and cleanup 40 * call cleanup 64 void cleanup(void); 88 fake_pid = tst_get_unused_pid(cleanup); 92 tst_brkm(TFAIL, cleanup, "%s failed - errno = %d : %s " 113 cleanup(); 127 * cleanup() - performs all the ONE TIME cleanup for this test at completion 130 void cleanup(void) function
|