aboutsummaryrefslogtreecommitdiff
path: root/tests/test-cutils.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2017-02-21 21:14:03 +0100
committerMarkus Armbruster <armbru@redhat.com>2017-02-23 20:35:36 +0100
commitdab9cc9237e3e1794053780e43787be8a07b22db (patch)
treee62355db0152ba5ada0ed5dac0e06354a5cb62bc /tests/test-cutils.c
parent753f8da0e082eac66d4c86168e14f1c55c09aa44 (diff)
downloadqemu-dab9cc9237e3e1794053780e43787be8a07b22db.zip
qemu-dab9cc9237e3e1794053780e43787be8a07b22db.tar.gz
qemu-dab9cc9237e3e1794053780e43787be8a07b22db.tar.bz2
test-cutils: Drop suffix from test_qemu_strtosz_simple()
Leave testing unit suffixes to test_qemu_strtosz_units(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <1487708048-2131-20-git-send-email-armbru@redhat.com>
Diffstat (limited to 'tests/test-cutils.c')
-rw-r--r--tests/test-cutils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-cutils.c b/tests/test-cutils.c
index d492d1e..c4437d9 100644
--- a/tests/test-cutils.c
+++ b/tests/test-cutils.c
@@ -1380,13 +1380,13 @@ static void test_qemu_strtosz_simple(void)
g_assert_cmpint(res, ==, 0);
g_assert(endptr == str + 1);
- str = "12345M";
+ str = "12345";
res = qemu_strtosz(str, &endptr);
- g_assert_cmpint(res, ==, 12345 * M_BYTE);
- g_assert(endptr == str + 6);
+ g_assert_cmpint(res, ==, 12345);
+ g_assert(endptr == str + 5);
res = qemu_strtosz(str, NULL);
- g_assert_cmpint(res, ==, 12345 * M_BYTE);
+ g_assert_cmpint(res, ==, 12345);
/* Note: precision is 53 bits since we're parsing with strtod() */