tests/kvargs: fix to consider empty elements as valid
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 25 Mar 2020 15:05:03 +0000 (16:05 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Wed, 25 Mar 2020 16:32:20 +0000 (17:32 +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 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>

No differences found