aboutsummaryrefslogtreecommitdiff
path: root/test/test_reloc_match.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2019-11-22 22:54:39 -0500
committerGitHub <noreply@github.com>2019-11-22 22:54:39 -0500
commit46ab9c276afee2fb03304aa53089c6c700c7af6e (patch)
tree59ea6b7a8217c17c0c1e915616f6615cc1813d9c /test/test_reloc_match.c
parent46a3e5a6837929d16670ed78e549882f34800ca4 (diff)
parent2ae80482cd88fb9786d3ff54777b8a462641f29f (diff)
downloadreloc-46ab9c276afee2fb03304aa53089c6c700c7af6e.tar.gz
Merge pull request #3 from jhunkeler/improve-testing
Improve testing
Diffstat (limited to 'test/test_reloc_match.c')
-rw-r--r--test/test_reloc_match.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_reloc_match.c b/test/test_reloc_match.c
index bb9d6b0..ed725cd 100644
--- a/test/test_reloc_match.c
+++ b/test/test_reloc_match.c
@@ -72,11 +72,11 @@ int test_reloc_match() {
myassert("Invalid match->end", match->end != NULL);
printf("\tpost=\"%s\", data=\"%s\"\n", match->post, match->begin);
myassert("Invalid match->post", !strcmp(match->post, test_solution_post[i]));
- printf("\tlength=%lu\n", match->length);
+ printf("\tlength=" SIZE_T_FMT "\n", match->length);
myassert("Invalid match->length", match->length == test_solution_length[i]);
- printf("\tpost_length=%lu\n", match->post_length);
+ printf("\tpost_length=" SIZE_T_FMT "\n", match->post_length);
myassert("Invalid match->post_length", match->post_length == test_solution_post_length[i]);
- printf("\ttotal_length=%lu\n", match->total_length);
+ printf("\ttotal_length=" SIZE_T_FMT "\n", match->total_length);
myassert("Invalid match->total_length", match->total_length == test_solution_total_length[i]);
if (match) {
free(match);