]> Git Repo - qemu.git/commit
qdev-monitor-test: Simplify using g_assert_cmpstr()
authorStefan Hajnoczi <[email protected]>
Thu, 6 Mar 2014 09:12:52 +0000 (10:12 +0100)
committerAndreas Färber <[email protected]>
Wed, 12 Mar 2014 19:13:02 +0000 (20:13 +0100)
commita3d7cbc1397bf01249b5c39dd1e285bd6aa818dc
tree79c75ccac0ec43b96282bc40943346479faad3b7
parent1b8601b0ea0b91467561e0bbddd52a833e4b2b1a
qdev-monitor-test: Simplify using g_assert_cmpstr()

Use g_assert_cmpstr() instead of combining g_assert() and strcmp(3).
This simplifies the code since we no longer have to play games to
distinguish NULL from "" using "(null)".

gcc extension haters will also be happy that ?: was dropped.

Suggested-by: Markus Armbruster <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
tests/qdev-monitor-test.c
This page took 0.025255 seconds and 4 git commands to generate.