app/test: remove writes in NULL buffer from cmdline tests
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 30 Jun 2014 10:52:55 +0000 (11:52 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 1 Jul 2014 14:25:36 +0000 (16:25 +0200)
commit8d9645381343b66aec2e8e2c71efc3cb9c9a098d
tree6750538556854a693642b54c84ac3de3437e0b92
parentcf953d2bfa7df9aa67459b333db4d4d8a9e72fd6
app/test: remove writes in NULL buffer from cmdline tests

Cmdline unit test calls several functions that use snprintf,
with NULL pointer as the destination buffer. This patch
eliminates these NULL pointer tests.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Tested-by: Waterman Cao <waterman.cao@intel.com>
app/test/test_cmdline_etheraddr.c
app/test/test_cmdline_num.c
app/test/test_cmdline_portlist.c