[LTP] [PATCH V5 04/10] syscalls/fsopen: New tests
Cyril Hrubis
chrubis@suse.cz
Fri Mar 6 14:10:47 CET 2020
Hi!
> + TEST(move_mount(fsmfd, "", AT_FDCWD, MNTPOINT,
> + MOVE_MOUNT_F_EMPTY_PATH));
> +
> + SAFE_CLOSE(fsmfd);
> +
> + if (TST_RET == -1) {
> + tst_res(TFAIL | TERRNO, "move_mount() failed");
> + goto out;
> + }
> +
> + if (tst_is_mounted(MNTPOINT))
> + tst_res(TPASS, "%s: fsopen() passed", tc->name);
> +
> + SAFE_UMOUNT(MNTPOINT);
I gues sthat the SAFE_UMOUNT() should be inside of the if here and in
the rest of the testcases.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list