X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=tests%2Fstrutil.c;h=f4bbe9ec64537987d84290e0d7369ad166561eff;hb=b3df76683179cbb9559e1cad8efe0d10c02dacce;hp=fca70eaaee36ef270d6725376391add9715197a2;hpb=081aaebfc7dd3e98edf85ffbd754e17ad7b8517b;p=libsigrok.git diff --git a/tests/strutil.c b/tests/strutil.c index fca70eaa..f4bbe9ec 100644 --- a/tests/strutil.c +++ b/tests/strutil.c @@ -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 /*