This patch adds test cases for parsing of parameters with multiple occurrances of the same name. v5: - Addressing Eric Blake's comments: added more tests Signed-off-by: Stefan Berger --- tests/nwfilterxml2xmlin/attr-value-test.xml | 27 +++++++++++++++++++++++++++ tests/nwfilterxml2xmlout/attr-value-test.xml | 22 ++++++++++++++++++++++ tests/nwfilterxml2xmltest.c | 2 ++ 3 files changed, 51 insertions(+) Index: libvirt-acl/tests/nwfilterxml2xmlin/attr-value-test.xml =================================================================== --- /dev/null +++ libvirt-acl/tests/nwfilterxml2xmlin/attr-value-test.xml @@ -0,0 +1,27 @@ + + 83011800-f663-96d6-8841-fd836b4318c6 + + + + + + + + + + + + + + + + + + + + Index: libvirt-acl/tests/nwfilterxml2xmlout/attr-value-test.xml =================================================================== --- /dev/null +++ libvirt-acl/tests/nwfilterxml2xmlout/attr-value-test.xml @@ -0,0 +1,22 @@ + + 83011800-f663-96d6-8841-fd836b4318c6 + + + + + + + + + + + + + + + + + + + + Index: libvirt-acl/tests/nwfilterxml2xmltest.c =================================================================== --- libvirt-acl.orig/tests/nwfilterxml2xmltest.c +++ libvirt-acl/tests/nwfilterxml2xmltest.c @@ -150,6 +150,8 @@ mymain(void) DO_TEST("chain_prefixtest1", true); /* derived from arp-test */ + DO_TEST("attr-value-test", false); + return (ret==0 ? EXIT_SUCCESS : EXIT_FAILURE); }