diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2022-08-02 10:50:06 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-10-07 09:41:51 -0400 |
commit | f48d994fb50c49093dd1dfe64c0d7314c6b62faf (patch) | |
tree | 8eb483ed52e1ed31bcdf501ca394dd218a14531e /tests/qtest/vhost-user-test.c | |
parent | 20a4127fbd4f54ab5ff2e0f3538c2b8e89011bce (diff) | |
download | qemu-f48d994fb50c49093dd1dfe64c0d7314c6b62faf.zip qemu-f48d994fb50c49093dd1dfe64c0d7314c6b62faf.tar.gz qemu-f48d994fb50c49093dd1dfe64c0d7314c6b62faf.tar.bz2 |
tests/qtest: plain g_assert for VHOST_USER_F_PROTOCOL_FEATURES
checkpatch.pl warns that non-plain asserts should be avoided so
convert the check to a plain g_assert.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220802095010.3330793-19-alex.bennee@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/qtest/vhost-user-test.c')
-rw-r--r-- | tests/qtest/vhost-user-test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/qtest/vhost-user-test.c b/tests/qtest/vhost-user-test.c index 8d2d4ba..a99f55e 100644 --- a/tests/qtest/vhost-user-test.c +++ b/tests/qtest/vhost-user-test.c @@ -985,8 +985,7 @@ static void test_multiqueue(void *obj, void *arg, QGuestAllocator *alloc) static void vu_net_set_features(TestServer *s, CharBackend *chr, VhostUserMsg *msg) { - g_assert_cmpint(msg->payload.u64 & - (0x1ULL << VHOST_USER_F_PROTOCOL_FEATURES), !=, 0ULL); + g_assert(msg->payload.u64 & (0x1ULL << VHOST_USER_F_PROTOCOL_FEATURES)); if (s->test_flags == TEST_FLAGS_DISCONNECT) { qemu_chr_fe_disconnect(chr); s->test_flags = TEST_FLAGS_BAD; |