[LTP] [PATCH 2/4] lib: Add test for tst_tmpdir
Petr Vorel
pvorel@suse.cz
Wed Feb 7 17:18:37 CET 2024
And more diff here.
Kind regards,
Petr
diff --git lib/newlib_tests/tst_tmpdir.c lib/newlib_tests/tst_tmpdir.c
index 008542808..c34430fa6 100644
--- lib/newlib_tests/tst_tmpdir.c
+++ lib/newlib_tests/tst_tmpdir.c
@@ -18,7 +18,8 @@ static struct tcase {
} tcases[] = {
{NULL, TEMPDIR, "default value"},
{"/tmp/", "/tmp", "removing trailing slash"},
- {"//var///tmp", "/var/tmp", "removing duplicate slashes"},
+ {"/var//tmp", "/var/tmp", "removing duplicate slashes"},
+ {"//var///tmp///", "/var/tmp", "removing too many slashes"},
};
static void do_test(unsigned int nr)
More information about the ltp
mailing list