Commit Diff
Commit:
3f2ab305cab249cabbe914b0d8770b50688c5d4c
From:
Omar Polo <op@omarpolo.com>
Date:
Mon Dec 26 14:44:44 2022 UTC
Message
tests: tweak logging on iritest
commit - a2785a57c07c946ec9269b0871f858fa863d4e6e
commit + 3f2ab305cab249cabbe914b0d8770b50688c5d4c
blob - 98db940bae04d845894254901297c22ad81658c6
blob + a7bfe0bc450040c5c679f92580564daf119fd32d
--- test/iritest.c
+++ test/iritest.c
@@ -28,25 +28,26 @@ resolve(const char *base, const char *ref, const char
char buf[512];
if (iri_parse(base, ref, &i) == -1) {
- fprintf(stderr, "FAIL (\"%s\", \"%s\") %s\n", base, ref,
+ fprintf(stderr, "FAIL resolve(\"%s\", \"%s\") %s\n", base, ref,
strerror(errno));
return (1);
}
if (iri_unparse(&i, buf, sizeof(buf)) == -1) {
- fprintf(stderr, "FAIL (\"%s\", \"%s\") %s\n", base, ref,
+ fprintf(stderr, "FAIL resolve(\"%s\", \"%s\") %s\n", base, ref,
strerror(errno));
return (1);
}
if (strcmp(buf, expected) != 0) {
- fprintf(stderr, "FAIL (\"%s\", \"%s\")\n", base, ref);
+ fprintf(stderr, "FAIL resolve(\"%s\", \"%s\")\n", base, ref);
fprintf(stderr, "got:\t%s\n", buf);
fprintf(stderr, "want:\t%s\n", expected);
return (1);
}
- fprintf(stderr, "OK (\"%s\", \"%s\") -> %s\n", base, ref, expected);
+ fprintf(stderr, "OK resolve(\"%s\", \"%s\") -> %s\n", base, ref,
+ expected);
return (0);
}
Omar Polo