]> sigrok.org Git - libsigrok.git/blobdiff - tests/strutil.c
input/vcd: do propagate parse error in file header
[libsigrok.git] / tests / strutil.c
index fca70eaaee36ef270d6725376391add9715197a2..f4bbe9ec64537987d84290e0d7369ad166561eff 100644 (file)
@@ -121,7 +121,7 @@ static void test_rational(const char *input, struct sr_rational expected)
        fail_unless(ret == SR_OK, "Unexpected rc for '%s': %d, errno %d.",
                input, ret, errno);
        fail_unless((expected.p == rational.p) && (expected.q == rational.q),
-                   "Invalid result for '%s': %ld/%ld'.",
+                   "Invalid result for '%s': %" PRIi64 "/%" PRIu64 "'.",
                    input, rational.p, rational.q);
 }
 
@@ -154,7 +154,7 @@ START_TEST(test_locale)
        fprintf(stderr, "Old locale = %s\n", old_locale);
        /* Copy the name so it won’t be clobbered by setlocale. */
        saved_locale = g_strdup(old_locale);
-       ck_assert_msg(saved_locale != NULL);
+       ck_assert(saved_locale != NULL);
 
 #ifdef _WIN32
        /*