Lines Matching refs:cleanup
88 static void cleanup(void);
109 cleanup(); in main()
120 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup()
127 device = tst_acquire_device(cleanup); in setup()
130 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup()
132 SAFE_TOUCH(cleanup, TESTFILE1, FILE_MODE, NULL); in setup()
133 ltpuser = SAFE_GETPWNAM(cleanup, LTPUSER1); in setup()
134 SAFE_CHOWN(cleanup, TESTFILE1, ltpuser->pw_uid, in setup()
137 SAFE_TOUCH(cleanup, TESTFILE2, FILE_MODE, NULL); in setup()
138 ltpuser = SAFE_GETPWNAM(cleanup, LTPUSER2); in setup()
139 SAFE_CHOWN(cleanup, TESTFILE2, ltpuser->pw_uid, in setup()
142 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
143 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); in setup()
145 tst_brkm(TBROK | TERRNO, cleanup, in setup()
149 SAFE_TOUCH(cleanup, TESTFILE3, FILE_MODE, NULL); in setup()
150 ltpuser = SAFE_GETPWNAM(cleanup, LTPUSER1); in setup()
151 SAFE_CHOWN(cleanup, TESTFILE3, ltpuser->pw_uid, in setup()
155 tst_brkm(TBROK | TERRNO, cleanup, in setup()
159 ltpuser = SAFE_GETPWNAM(cleanup, LTPUSER1); in setup()
160 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup()
169 SAFE_STAT(cleanup, tc->pathname, &st); in utimes_verify()
188 tst_brkm(TBROK | TERRNO, cleanup, "utimes() failed."); in utimes_verify()
191 static void cleanup(void) in cleanup() function