Lines Matching full:cleanup
50 static void cleanup(void);
82 void (*cleanup)(void);
111 goto cleanup;
118 goto cleanup;
123 cleanup:
124 if (tc->cleanup)
125 tc->cleanup();
143 cleanup();
150 tst_brkm(TBROK | TERRNO, cleanup, "Failed to mount(mntpoint)");
157 fd = SAFE_OPEN(cleanup, "mntpoint/file", O_CREAT | O_RDWR, S_IRWXU);
162 SAFE_CLOSE(cleanup, fd);
169 tst_brkm(TBROK | TERRNO, cleanup, "Failed to umount(mntpoint)");
176 tst_sig(FORK, DEF_HANDLER, cleanup);
182 SAFE_TOUCH(cleanup, file, FILE_MODE, NULL);
185 device = tst_acquire_device(cleanup);
188 tst_brkm(TCONF, cleanup, "Failed to obtain block device");
190 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
192 SAFE_MKDIR(cleanup, mntpoint, DIR_MODE);
198 tst_brkm(TBROK | TERRNO, cleanup,
206 static void cleanup(void)