Lines Matching defs:cleanup
33 static void cleanup(void);
62 cleanup();
75 device = tst_acquire_device(cleanup);
78 tst_brkm(TCONF, cleanup, "Failed to obtain block device");
80 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
82 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE);
93 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL);
96 fd = SAFE_CREAT(cleanup, MNTPOINT "/file", FILE_MODE);
120 SAFE_WRITE(cleanup, SAFE_WRITE_ALL, fd, str, strlen(str));
122 SAFE_CLOSE(cleanup, fd);
124 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL);
127 fd = SAFE_OPEN(cleanup, MNTPOINT "/file", O_RDONLY);
131 SAFE_READ(cleanup, 1, fd, buf, strlen(str));
142 SAFE_CLOSE(cleanup, fd);
147 tst_brkm(TBROK, cleanup, "umount() failed");
152 static void cleanup(void)