/external/ltp/testcases/kernel/syscalls/kill/ |
kill08.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, 126 tst_brkm(TFAIL, cleanup, "%s failed - errno = " 147 cleanup(); 172 * cleanup() - performs all the ONE TIME cleanup for this test at completio 175 void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/readdir/ |
readdir21.c | 59 static void cleanup(void); 93 cleanup(); 99 tst_sig(NOFORK, DEF_HANDLER, cleanup); 105 SAFE_MKDIR(cleanup, TEST_DIR, DIR_MODE); 106 del_dir_fd = SAFE_OPEN(cleanup, TEST_DIR, O_RDONLY | O_DIRECTORY); 107 SAFE_RMDIR(cleanup, TEST_DIR); 109 file_fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDWR | O_CREAT, 0777); 111 SAFE_MKDIR(cleanup, TEST_DIR4, DIR_MODE); 112 dir_fd = SAFE_OPEN(cleanup, TEST_DIR4, O_RDONLY | O_DIRECTORY); 115 test_cases[3].dirp = SAFE_MMAP(cleanup, 0, 1, PROT_NONE 138 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/sendfile/ |
sendfile08.c | 51 static void cleanup(void); 68 tst_brkm(TBROK | TTERRNO, cleanup, "sendfile() failed"); 70 ret = SAFE_LSEEK(cleanup, out_fd, 0, SEEK_SET); 73 tst_brkm(TBROK | TERRNO, cleanup, "read %s failed", 84 cleanup(); 102 in_fd = SAFE_CREAT(cleanup, in_file, 0700); 106 tst_brkm(TBROK | TERRNO, cleanup, "Write %s failed", in_file); 109 in_fd = SAFE_OPEN(cleanup, in_file, O_RDONLY); 110 out_fd = SAFE_OPEN(cleanup, out_file, O_TRUNC | O_CREAT | O_RDWR, 0777); 114 tst_brkm(TBROK | TERRNO, cleanup, "Write %s failed", out_file) 117 static void cleanup(void) function [all...] |
sendfile05.c | 70 void cleanup(void); 90 tst_brkm(TBROK, cleanup, "open failed: %d", errno); 92 SAFE_STAT(cleanup, in_file, &sb); 141 tst_sig(FORK, DEF_HANDLER, cleanup); 149 tst_brkm(TBROK, cleanup, "creat failed in setup, errno: %d", 154 tst_brkm(TBROK, cleanup, "write failed, errno: %d", errno); 161 * cleanup() - performs all ONE TIME cleanup for this test at 164 void cleanup(void) function 180 tst_brkm(TBROK, cleanup, "call to socket() failed: %s" [all...] |
/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/setreuid/ |
setreuid01.c | 49 static void cleanup(void); 73 UID16_CHECK(ruid, setreuid, cleanup); 76 UID16_CHECK(euid, setreuid, cleanup); 78 TEST(SETREUID(cleanup, -1, -1)); 95 TEST(SETREUID(cleanup, -1, euid)); 112 TEST(SETREUID(cleanup, ruid, -1)); 129 TEST(SETREUID(cleanup, -1, ruid)); 146 TEST(SETREUID(cleanup, ruid, ruid)); 160 cleanup(); 166 tst_sig(NOFORK, DEF_HANDLER, cleanup); 173 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/unlinkat/ |
unlinkat01.c | 49 void cleanup(); 99 cleanup(); 105 tst_sig(NOFORK, DEF_HANDLER, cleanup); 111 SAFE_ASPRINTF(cleanup, &testfile3, "%s/unlinkatfile3.txt", abs_path); 115 SAFE_MKDIR(cleanup, pathname, 0700); 116 SAFE_MKDIR(cleanup, subpathdir, 0700); 118 fds[0] = SAFE_OPEN(cleanup, pathname, O_DIRECTORY); 121 SAFE_FILE_PRINTF(cleanup, testfile, testfile); 122 SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); 124 fds[2] = SAFE_OPEN(cleanup, testfile3, O_CREAT | O_RDWR, 0600) 137 void cleanup(void) function [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/ |
2-1.c | 10 * Any cancelation cleanup handlers that have been pushed and not yet popped 16 * 3. When this happens, the cleanup handler should be called. 30 /* Cleanup function that the thread executes when it is canceled. So if 39 /* Cleanup function that the thread executes when it is canceled. So if 48 /* Cleanup function that the thread executes when it is canceled. So if 60 /* Set up 3 cleanup handlers */ 98 /* Check to make sure that the cleanup handlers were executed in order. */ 107 ("Test FAILED: Did not execute cleanup handlers in order.\n"); 111 ("Test FAILED: Did not execute cleanup handlers in order.\n"); 114 printf("Test FAILED: Did not execute cleanup handlers.\n") [all...] |
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl33.c | 56 static void cleanup(void); 106 cleanup(); 112 tst_sig(FORK, DEF_HANDLER, cleanup); 124 switch ((type = tst_fs_type(cleanup, "."))) { 128 tst_brkm(TCONF, cleanup, 136 SAFE_TOUCH(cleanup, "file", FILE_MODE, NULL); 142 tst_brkm(TBROK | TERRNO, cleanup, "sigprocmask() failed"); 149 fd = SAFE_OPEN(cleanup, "file", O_RDONLY); 154 tst_brkm(TBROK | TERRNO, cleanup, "fork() failed"); 164 SAFE_WAITPID(cleanup, cpid, NULL, 0) 251 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/ftruncate/ |
ftruncate04.c | 70 static void cleanup(void); 88 tst_brkm(TBROK, cleanup, 92 SAFE_CHMOD(cleanup, filename, 02666); 102 tst_brkm(TBROK | TERRNO, cleanup, "fork() failed"); 108 tst_brkm(TBROK, cleanup, "self_exec() failed"); 118 cleanup(); 153 SAFE_FSTAT(cleanup, fd, &sb); 170 TST_SAFE_CHECKPOINT_WAIT(cleanup, 0); 172 fd = SAFE_OPEN(cleanup, filename, O_RDWR | O_NONBLOCK); 179 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0) 262 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/rename/ |
rename09.c | 53 * Cleanup: 85 void cleanup(); 121 tst_brkm(TBROK, cleanup, "fork() #1 failed"); 144 SAFE_TOUCH(cleanup, fname, 0700, NULL); 152 tst_brkm(TBROK, cleanup, "First child failed to set " 157 tst_brkm(TBROK, cleanup, "fork() #2 failed"); 175 SAFE_TOUCH(cleanup, mname, 0700, NULL); 198 SAFE_UNLINK(cleanup, fname); 199 SAFE_UNLINK(cleanup, mname); 200 SAFE_RMDIR(cleanup, fdir) 254 void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/rmdir/ |
rmdir02.c | 97 static void cleanup(void); 117 cleanup(); 128 tst_sig(NOFORK, DEF_HANDLER, cleanup); 135 device = tst_acquire_device(cleanup); 138 tst_brkm(TCONF, cleanup, "Failed to acquire device"); 140 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 141 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); 142 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); 143 SAFE_MKDIR(cleanup, TESTDIR5, DIR_MODE); 144 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY 191 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/containers/userns/ |
userns03.c | 149 static void cleanup(void) function 181 tst_brkm(TBROK | TERRNO, cleanup, 187 tst_brkm(TBROK | TERRNO, cleanup, 192 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); 193 SAFE_WRITE(cleanup, 1, fd, "deny", 4); 194 SAFE_CLOSE(cleanup, fd); 203 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); 207 tst_brkm(TBROK | TERRNO, cleanup, 210 tst_brkm(TBROK | TERRNO, cleanup, 213 SAFE_CLOSE(cleanup, fd) [all...] |
/external/ltp/testcases/kernel/syscalls/linkat/ |
linkat01.c | 71 static void cleanup(); 225 cleanup(); 235 SAFE_MKDIR(cleanup, TEST_DIR2, 0700); 236 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); 250 fd = SAFE_OPEN(cleanup, desc->referencefn1, 252 SAFE_WRITE(cleanup, 1, fd, &tnum, sizeof(tnum)); 253 SAFE_CLOSE(cleanup, fd); 255 fd = SAFE_OPEN(cleanup, desc->referencefn2, 257 SAFE_READ(cleanup, 1, fd, &vnum, sizeof(vnum)); 258 SAFE_CLOSE(cleanup, fd) 318 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/mknod/ |
mknod04.c | 51 * Cleanup: 103 void cleanup(); /* cleanup function for the test */ 178 * Invoke cleanup() to delete the test directories created 181 cleanup(); 203 tst_sig(NOFORK, DEF_HANDLER, cleanup); 212 tst_brkm(TBROK, cleanup, "chmod() failed"); 226 tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER); 239 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); 240 SAFE_CHOWN(cleanup, DIR_TEMP, user1_uid, group2_gid) 287 void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/send/ |
send01.c | 65 void (*cleanup) (void); member in struct:test_case_t 69 static void cleanup(void); 88 .cleanup = cleanup0, 100 .cleanup = cleanup0, 114 .cleanup = cleanup1, 127 .cleanup = cleanup1, 139 .cleanup = cleanup1, 153 .cleanup = cleanup1, 175 tst_brkm(TBROK | TERRNO, cleanup, "server socket failed"); 179 tst_brkm(TBROK | TERRNO, cleanup, "server bind failed") 307 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/utime/ |
utime03.c | 53 * Cleanup: 109 void cleanup(); /* cleanup function for the test */ 124 switch ((type = tst_fs_type(cleanup, "."))) { 127 tst_brkm(TCONF, cleanup, "Cannot do utime on a file" 132 tst_brkm(TCONF, cleanup, 141 tst_brkm(TBROK, cleanup, "fork() failed"); 144 tst_brkm(TBROK, cleanup, "%s not found in /etc/passwd", 185 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); 213 * use during cleanup 293 void cleanup(void) function [all...] |
/external/autotest/site_utils/lxc/ |
shared_host_dir_unittest.py | 47 host_dir.cleanup() 52 """Verifies that a missing host dir does not cause cleanup to crash. 63 host_dir.cleanup() 65 self.fail('SharedHostDir.cleanup crashed.\n%s' % 79 host_dir.cleanup() 94 host_dir.cleanup() 110 """Verifies that cleanup code correctly times out. 112 Cleanup can fail because of I/O caches and other similar things keeping 113 the mount active. Test that the cleanup code properly times out in 121 # Cleanup should time out [all...] |
/external/clang/test/CodeGenCXX/ |
attr-cleanup.cpp | 9 void *fp __attribute__((cleanup(N::free)));
|
/external/llvm/test/Analysis/CallGraph/ |
do-nothing-intrinsic.ll | 8 %tmp = landingpad i8 cleanup
|
/external/llvm/test/Bitcode/ |
use-list-order2.ll | 12 %cleanup = landingpad i8 cleanup 25 %cleanup = landingpad i8 cleanup
|
/external/llvm/test/CodeGen/Generic/ |
2007-02-25-invoke.ll | 12 cleanup
|
/external/ltp/lib/newlib_tests/ |
test04.c | 42 static void cleanup(void) function 44 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); 57 .cleanup = cleanup,
|
test05.c | 30 static void cleanup(void) function 32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); 52 .cleanup = cleanup,
|
test07.c | 30 static void cleanup(void) function 32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); 50 .cleanup = cleanup,
|