test-qobject-input-visitor: Avoid format string ambiguity
commiteac78bd430f357b9d935afaa09355c6fc6a13e3d
authorMarkus Armbruster <armbru@redhat.com>
Mon, 6 Aug 2018 06:53:30 +0000 (6 08:53 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 16 Aug 2018 06:42:06 +0000 (16 08:42 +0200)
treea08b0dc0c89754942f5470f7695abfc3a03849da
parent69f0cb661a9284045464619f24ceaa8771c0a212
test-qobject-input-visitor: Avoid format string ambiguity

When visitor_input_test_init_internal()'s argument @ap is null, then
@json_string is interpreted literally, else it's gets %-escapes
interpolated.  This is awkward.

One caller always passes null @ap, and the others never do.  Lift the
building of the QObject into the callers, where it can be done without
such ambiguity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180806065344.7103-10-armbru@redhat.com>
tests/test-qobject-input-visitor.c