libvirt/tests/commanddata
Eric Blake 2b045d39df command: handle empty buffer argument correctly
virBufferContentAndReset (intentionally) returns NULL for a buffer
with no content, but it is feasible to invoke a command with an
explicit empty string.

* src/util/command.c (virCommandAddEnvBuffer): Reject empty string.
(virCommandAddArgBuffer): Allow explicit empty argument.
* tests/commandtest.c (test9): Test it.
* tests/commanddata/test9.log: Adjust.
2011-12-03 15:55:46 -07:00
..
test2.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test3.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test4.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test5.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test6.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test7.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test8.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test9.log command: handle empty buffer argument correctly 2011-12-03 15:55:46 -07:00
test10.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test11.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test12.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test13.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test14.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test15.log Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
test16.log freebsd: Avoid /bin/true in commandtest 2011-07-29 12:12:58 +02:00