test/kvargs: fix to consider empty elements as valid
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 27 Mar 2020 08:09:53 +0000 (09:09 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 27 Mar 2020 16:03:31 +0000 (17:03 +0100)
Empty elements passed to the kvargs parser are silently
ignored. Examples of valid strings:
  ""
  ","
  ",,,,,,key=val,,,,"

Fix the unit tests to conform to this behavior.

Note: the test_invalid_kvargs() function is currently broken, which
explain why the tests were not failing. It is fixed in the next commit.

Fixes: e495f5435524 ("kvargs: add test case in app/test")
Cc: stable@dpdk.org
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>

No differences found