EXTRA_DIST = jprog.sh
CLEANFILES = jprog
+
+# The test can fail under a parallel make, so disable.
+# No evident way to debug or reliably reproduce.
+.NOTPARALLEL:
END
cat > bin/jprog.sh <<'END'
cat > jprog/Makefile.am <<'END'
dist_jprogclass_JAVA = Main.java HelloStream.java
nodist_jprogclass_JAVA = PkgLocation.java
+
+# Tell GNU make not to parallelize, since the tests can result in, for example:
+# /p/bin/install: cannot create regular file '/w/co/automake/t/java-compile-run-nested.dir/_inst/share/java-compile-run-nested/jprog/HelloStream.class':
+# File exists
+# No evident way to debug or reliably reproduce.
+.NOTPARALLEL:
END
cat > jprog/PkgLocation.jin <<'END'
XFAIL_TESTS = badarg.test
EXTRA_DIST = $(TESTS)
+
+# The test can fail under a parallel make, so disable.
+# No evident way to debug or reliably reproduce.
+.NOTPARALLEL:
END
cat > tests/simple.test <<'END'