[LTP] [PATCH v3 04/10] tst_mount_device.sh: Cover early tst_umount call
Richard Palethorpe
rpalethorpe@suse.de
Fri Sep 2 11:32:22 CEST 2022
Acked-by: Richard Palethorpe <rpalethorpe@suse.com>
Petr Vorel <pvorel@suse.cz> writes:
> Caused by tst_brk in tests with TST_MOUNT_DEVICE=1.
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> New in v3
>
> lib/newlib_tests/shell/tst_mount_device.sh | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/lib/newlib_tests/shell/tst_mount_device.sh b/lib/newlib_tests/shell/tst_mount_device.sh
> index c8f185626..561f878d2 100755
> --- a/lib/newlib_tests/shell/tst_mount_device.sh
> +++ b/lib/newlib_tests/shell/tst_mount_device.sh
> @@ -5,7 +5,7 @@
> TST_MOUNT_DEVICE=1
> TST_FS_TYPE=ext4
> TST_TESTFUNC=test
> -TST_CNT=2
> +TST_CNT=3
>
> test1()
> {
> @@ -17,5 +17,10 @@ test2()
> EXPECT_PASS "grep '$TST_MNTPOINT $TST_FS_TYPE' /proc/mounts"
> }
>
> +test3()
> +{
> + tst_brk TCONF "quit early to test early tst_umount"
> +}
> +
> . tst_test.sh
> tst_run
> --
> 2.37.1
--
Thank you,
Richard.
More information about the ltp
mailing list