]> err.no Git - util-linux/commitdiff
tests: add quoted optstr
authorKarel Zak <kzak@redhat.com>
Wed, 20 Oct 2010 10:40:55 +0000 (12:40 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Jan 2011 11:28:45 +0000 (12:28 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/libmount/optstr-append
tests/ts/libmount/optstr

index 10933cb1fbba66f4020f72cd12a7ce9001d59efb..68e584584b85b79d11d6223797452e71af27521a 100644 (file)
@@ -1 +1 @@
-result: >aaa,bbb=BBB,ccc,ddd<
+result: >aaa,bbb=BBB,context="foo,bar,gogo",ccc,ddd<
index 11b707d07fcfd79e3bb9cb5679aec99ad2d91810..a58eaaa70988351967f6f154b2f63ecc53944a07 100755 (executable)
@@ -11,7 +11,7 @@ ts_init "$*"
 TESTPROG="$TS_HELPER_LIBMOUNT_OPTSTR"
 
 ts_init_subtest "append"
-$TESTPROG --append "aaa,bbb=BBB,ccc" "ddd" &> $TS_OUTPUT
+$TESTPROG --append "aaa,bbb=BBB,context=\"foo,bar,gogo\",ccc" "ddd" &> $TS_OUTPUT
 ts_finalize_subtest
 
 ts_init_subtest "append-value"
@@ -58,6 +58,10 @@ ts_init_subtest "remove"
 $TESTPROG --remove "aaa,bbb=BBB,ccc" "aaa" &> $TS_OUTPUT
 ts_finalize_subtest
 
+ts_init_subtest "remove-quoted"
+$TESTPROG --remove "aaa,context=\"foo,bar,gogo\",bbb=BBB,ccc" "context" &> $TS_OUTPUT
+ts_finalize_subtest
+
 ts_init_subtest "remove-value"
 $TESTPROG --remove "aaa,bbb=BBB,ccc" "bbb" &> $TS_OUTPUT
 ts_finalize_subtest