From 20450f696ef9c0e744d7def916f503681d741056 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sun, 4 Sep 2011 19:36:56 +0100 Subject: Fix some written-but-not-cleaned files --- testsuite/tests/driver/recomp004/Makefile | 11 ++++++----- testsuite/tests/driver/recomp004/all.T | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'testsuite/tests/driver/recomp004') diff --git a/testsuite/tests/driver/recomp004/Makefile b/testsuite/tests/driver/recomp004/Makefile index 41b93b169d..4ad51d8f60 100644 --- a/testsuite/tests/driver/recomp004/Makefile +++ b/testsuite/tests/driver/recomp004/Makefile @@ -2,8 +2,8 @@ TOP=../../.. include $(TOP)/mk/boilerplate.mk include $(TOP)/mk/test.mk -EXECUTABLE = Main$(exeext) -CLEAN_FILES = c.c c.o Main.o Main.hi $(EXECUTABLE) +EXECUTABLE = MainX$(exeext) +CLEAN_FILES = c.c c.o MainX.o MainX.hi $(EXECUTABLE) clean: $(RM) $(CLEAN_FILES) @@ -12,13 +12,14 @@ clean: recomp004: $(RM) $(CLEAN_FILES) $(CP) c1.c c.c + $(CP) Main.hs MainX.hs '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c c.c -o c.o - '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make Main.hs c.o -o $(EXECUTABLE) + '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make MainX.hs c.o -o $(EXECUTABLE) ./$(EXECUTABLE) $(CP) c2.c c.c '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c c.c -o c.o # Hack to make sure c.o is really newer - touch -t 01010000 Main.hs Main.hi Main.o c.c $(EXECUTABLE) - '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make Main.hs c.o -o $(EXECUTABLE) + touch -t 01010000 MainX.hs MainX.hi MainX.o c.c $(EXECUTABLE) + '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make MainX.hs c.o -o $(EXECUTABLE) ./$(EXECUTABLE) diff --git a/testsuite/tests/driver/recomp004/all.T b/testsuite/tests/driver/recomp004/all.T index 54d190d83a..5ec5166bd1 100644 --- a/testsuite/tests/driver/recomp004/all.T +++ b/testsuite/tests/driver/recomp004/all.T @@ -1,4 +1,5 @@ test('recomp004', - extra_clean(['Main', 'Main.exe', 'c.c']), + extra_clean(['MainX', 'MainX.exe', 'MainX.hi', 'MainX.o', 'MainX.hs', + 'c.o', 'c.c']), run_command, ['$MAKE -s --no-print-directory recomp004']) -- cgit v1.2.1