build-sys: make test output a bit nicer

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-12-31 12:51:46 -05:00
parent 7a7c74cae4
commit 9b55cd5665
2 changed files with 4 additions and 3 deletions

View File

@ -4900,8 +4900,9 @@ install-tree: all
# exclude the one perl script we have in there
valgrind-tests: $(TESTS)
$(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
echo "Running $$f"; \
echo -e "$${x}Running $$f"; \
libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; \
x="\n\n"; \
done
exported-%: %

View File

@ -262,8 +262,8 @@ int main(int argc, char *argv[]) {
fflush(ms);
assert_se(!ferror(ms));
printf("<%.*s>", (int) first_size, first);
printf("<%.*s>", (int) third_size, third);
printf("<%.*s>\n", (int) first_size, first);
printf("<%.*s>\n", (int) third_size, third);
assert_se(first_size == third_size);
assert_se(memcmp(first, third, third_size) == 0);