DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (d38398e5144e)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#T commandline: ['-j2']

# A submake shouldn't return control to the parent until it has actually finished doing everything.

all:
	-$(MAKE) -f $(TESTPATH)/parallel-submake.mk subtarget
	cat results
	test "$$(cat results)" = "0123"
	@echo TEST-PASS

subtarget: succeed-slowly fail-quickly

succeed-slowly:
	printf 0 >>results; sleep 1; printf 1 >>results; sleep 1; printf 2 >>results; sleep 1; printf 3 >>results

fail-quickly:
	exit 1