[LTP] [PATCH V5 04/10] syscalls/fsopen: New tests

Cyril Hrubis
2020-03-06T13:10:47Z

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