The f_decls test doesn't quite pass currently, because there's too
much whitespace in the function return types. We don't particularly
care about this for PG purposes, as NetBSD indent did that too, and
we've always had a fixup step for it in the pgindent wrapper script.
So make the expected output file match what actually happens.
(If this ever does get fixed by upstream, we can take that fixup
step out of pgindent.)
In passing, make the "make check" script less noisy.
include $(PGXS)
check: $(PROGRAM)
- rm -f tests.diff
- cp $(srcdir)/tests/*.list .
- for testsrc in $(srcdir)/tests/*.0; do \
+ @rm -f tests.diff
+ @cp $(srcdir)/tests/*.list .
+ @for testsrc in $(srcdir)/tests/*.0; do \
test=`basename "$$testsrc" .0`; \
./$(PROGRAM) $$testsrc $$test.out -P$(srcdir)/tests/$$test.pro || echo FAILED >>$$test.out; \
diff -u $$testsrc.stdout $$test.out >>tests.diff 2>&1 || true; \
-char *
+char *
x(void)
{
type identifier;
return NULL;
}
-int *
+int *
y(void)
{