From 7efa906c453709eb75eb84165bd4eab5f0a81fb8 Mon Sep 17 00:00:00 2001 From: Thomas Nilefalk Date: Wed, 12 Jun 2024 15:21:36 +0200 Subject: [PATCH] [tests] Fix two tests that used CXREF (the program) iso. COMMAND (incl. BASE_ARGUMENTS) --- tests/test_pragma_once/Makefile | 4 ++-- tests/test_process_yacc/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_pragma_once/Makefile b/tests/test_pragma_once/Makefile index 72b47747..8b2aacfc 100644 --- a/tests/test_pragma_once/Makefile +++ b/tests/test_pragma_once/Makefile @@ -1,8 +1,8 @@ include ../Makefile.boilerplate $(TEST): .c-xrefrc - @rm -rf $(TEST).log CXrefs /tmp/c-xref*.log - @$(CXREF) include1.h include2.h -o $(TEST).log + @-rm -rf $(TEST).log CXrefs /tmp/c-xref*.log + @$(COMMAND) include1.h include2.h -o $(TEST).log @grep include1.h CXrefs/XFiles > /dev/null ; \ if [ $$? -ne 0 ] ; then \ $(FAIL) ; \ diff --git a/tests/test_process_yacc/Makefile b/tests/test_process_yacc/Makefile index 60eee262..0820d972 100644 --- a/tests/test_process_yacc/Makefile +++ b/tests/test_process_yacc/Makefile @@ -7,7 +7,7 @@ YACC = ../../byacc-1.9/yacc $(TEST): $(YACC) .c-xrefrc @rm -rf $(TEST).log CXrefs @$(YACC) file.y - @$(CXREF) *.[cy] -o $(TEST).log + @$(COMMAND) *.[cy] -o $(TEST).log @# Get the "symbol" for the yacc-file from the CXrefs and use it @# to find the reference to func from the .y file @f=`grep process_yacc/file.y CXrefs/* | awk '{print $$1}'` ; \