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