Browse Source

Clean up after ourselves

Eric Andersen 25 years ago
parent
commit
6dd3cd3916
1 changed files with 4 additions and 2 deletions
  1. 4 2
      test/assert/Makefile

+ 4 - 2
test/assert/Makefile

@@ -30,8 +30,9 @@ assert: assert.c Makefile $(TOPDIR)libc.a
 	-@ echo " "
 	$(CC) $(XCFLAGS) -c $< -o $@.o
 	$(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
-	-@ echo "This is supposed to core dump on test #3"
 	-./$@
+	-@ echo "This was supposed to core dump on test #3"
+	-@rm -f core
 	-@ echo " "
 
 assert_glibc: assert.c Makefile $(TOPDIR)libc.a
@@ -41,8 +42,9 @@ assert_glibc: assert.c Makefile $(TOPDIR)libc.a
 	-@ echo " "
 	$(CC) $(YCFLAGS) -c $< -o $@.o
 	$(CC) $(YLDFLAGS) --static $@.o -o $@
-	-@ echo "This is supposed to core dump on test #3"
 	-./$@
+	-@ echo "This was supposed to core dump on test #3"
+	-@rm -f core
 	-@ echo " "
 
 clean: