Fix build-and-build-again bug in sunrpc tests.
rpcgen will error out if the file it's asked to create already exists. Several other rules in sunrpc/Makefile take care to delete rpcgen- generated files before creating them, but rpcgen-tests doesn't, which can lead to spurious test failures in an incremental rebuild. * sunrpc/Makefile (rpcgen-tests): Delete the .out file before creating or re-creating it.
This commit is contained in:
parent
9601d3ad78
commit
8888eb5e6d
|
@ -233,6 +233,7 @@ $(objpfx)thrsvc: $(common-objpfx)linkobj/libc.so $(shared-thread-library)
|
||||||
|
|
||||||
ifeq ($(run-built-tests),yes)
|
ifeq ($(run-built-tests),yes)
|
||||||
$(rpcgen-tests): $(objpfx)%.out: %.x $(objpfx)rpcgen
|
$(rpcgen-tests): $(objpfx)%.out: %.x $(objpfx)rpcgen
|
||||||
|
-rm -f $@
|
||||||
$(built-program-cmd) -c $< -o $@; \
|
$(built-program-cmd) -c $< -o $@; \
|
||||||
$(evaluate-test)
|
$(evaluate-test)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue