summaryrefslogtreecommitdiffstats
path: root/src/test/test-fstab-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-fstab-util.c')
-rw-r--r--src/test/test-fstab-util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test-fstab-util.c b/src/test/test-fstab-util.c
index 222ffbb2a7..ebbdd05ca6 100644
--- a/src/test/test-fstab-util.c
+++ b/src/test/test-fstab-util.c
@@ -91,9 +91,13 @@ static void test_fstab_filter_options(void) {
do_fstab_filter_options("opt =0", "x-opt\0opt\0noopt\0x-noopt\0", 0, NULL, NULL, NULL);
do_fstab_filter_options(" opt ", "opt\0x-opt\0", 0, NULL, NULL, NULL);
- /* check function will NULL args */
+ /* check function with NULL args */
do_fstab_filter_options(NULL, "opt\0", 0, NULL, NULL, "");
do_fstab_filter_options("", "opt\0", 0, NULL, NULL, "");
+
+ /* unnecessary comma separators */
+ do_fstab_filter_options("opt=x,,,,", "opt\0", 1, "opt", "x", "");
+ do_fstab_filter_options(",,,opt=x,,,,", "opt\0", 1, "opt", "x", "");
}
static void test_fstab_find_pri(void) {