🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
1 messages
1 total messages Started by Jason Merrill Sat, 28 Mar 1992 23:52
Bug in gperf/test/Makefile.in
#46
Author: Jason Merrill
Date: Sat, 28 Mar 1992 23:52
140 lines
6519 bytes
Several of the test files in gperf/test are named expected.out.[1-9].
When you run make clean in this directory, make executes an rm *out*, which
wipes them out.

Fix: mmv expected.out.\? expected.=1

and:

*** libg++!gperf!tests!Makefile.in~	Sat Mar  7 16:06:06 1992
--- libg++/gperf/tests/Makefile.in	Sat Mar 28 15:40:00 1992
***************
*** 61,67
  	-diff -b $(srcdir)/expected.pascal output.pascal
  # these next 5 are demos that show off the generated code
  	$(GPERF) -p -j1 -g -o -t -N is_reserved_word -k1,3,'$$' < $(srcdir)/c-parse.gperf > test.out.1
! 	-diff -b $(srcdir)/expected.out.1 test.out.1
  	$(GPERF) -n -k1-8 -l <$(srcdir)/modula2.gperf > test.out.2
  	-diff -b $(srcdir)/expected.out.2 test.out.2
  	$(GPERF) -p -j 1 -o -a -g -t -k1,4,$$ < $(srcdir)/gplus.gperf > test.out.3

--- 61,67 -----
  	-diff -b $(srcdir)/expected.pascal output.pascal
  # these next 5 are demos that show off the generated code
  	$(GPERF) -p -j1 -g -o -t -N is_reserved_word -k1,3,'$$' < $(srcdir)/c-parse.gperf > test.out.1
! 	-diff -b $(srcdir)/expected.1 test.out.1
  	$(GPERF) -n -k1-8 -l <$(srcdir)/modula2.gperf > test.out.2
  	-diff -b $(srcdir)/expected.2 test.out.2
  	$(GPERF) -p -j 1 -o -a -g -t -k1,4,$$ < $(srcdir)/gplus.gperf > test.out.3
***************
*** 63,69
  	$(GPERF) -p -j1 -g -o -t -N is_reserved_word -k1,3,'$$' < $(srcdir)/c-parse.gperf > test.out.1
  	-diff -b $(srcdir)/expected.out.1 test.out.1
  	$(GPERF) -n -k1-8 -l <$(srcdir)/modula2.gperf > test.out.2
! 	-diff -b $(srcdir)/expected.out.2 test.out.2
  	$(GPERF) -p -j 1 -o -a -g -t -k1,4,$$ < $(srcdir)/gplus.gperf > test.out.3
  	-diff -b $(srcdir)/expected.out.3 test.out.3
  	$(GPERF) -D -p -t < $(srcdir)/c-parse.gperf > test.out.4

--- 63,69 -----
  	$(GPERF) -p -j1 -g -o -t -N is_reserved_word -k1,3,'$$' < $(srcdir)/c-parse.gperf > test.out.1
  	-diff -b $(srcdir)/expected.1 test.out.1
  	$(GPERF) -n -k1-8 -l <$(srcdir)/modula2.gperf > test.out.2
! 	-diff -b $(srcdir)/expected.2 test.out.2
  	$(GPERF) -p -j 1 -o -a -g -t -k1,4,$$ < $(srcdir)/gplus.gperf > test.out.3
  	-diff -b $(srcdir)/expected.3 test.out.3
  	$(GPERF) -D -p -t < $(srcdir)/c-parse.gperf > test.out.4
***************
*** 65,71
  	$(GPERF) -n -k1-8 -l <$(srcdir)/modula2.gperf > test.out.2
  	-diff -b $(srcdir)/expected.out.2 test.out.2
  	$(GPERF) -p -j 1 -o -a -g -t -k1,4,$$ < $(srcdir)/gplus.gperf > test.out.3
! 	-diff -b $(srcdir)/expected.out.3 test.out.3
  	$(GPERF) -D -p -t < $(srcdir)/c-parse.gperf > test.out.4
  	-diff -b $(srcdir)/expected.out.4 test.out.4
  	$(GPERF) -g -o -j1 -t -p -N is_reserved_word < $(srcdir)/gpc.gperf > test.out.5

--- 65,71 -----
  	$(GPERF) -n -k1-8 -l <$(srcdir)/modula2.gperf > test.out.2
  	-diff -b $(srcdir)/expected.2 test.out.2
  	$(GPERF) -p -j 1 -o -a -g -t -k1,4,$$ < $(srcdir)/gplus.gperf > test.out.3
! 	-diff -b $(srcdir)/expected.3 test.out.3
  	$(GPERF) -D -p -t < $(srcdir)/c-parse.gperf > test.out.4
  	-diff -b $(srcdir)/expected.4 test.out.4
  	$(GPERF) -g -o -j1 -t -p -N is_reserved_word < $(srcdir)/gpc.gperf > test.out.5
***************
*** 67,73
  	$(GPERF) -p -j 1 -o -a -g -t -k1,4,$$ < $(srcdir)/gplus.gperf > test.out.3
  	-diff -b $(srcdir)/expected.out.3 test.out.3
  	$(GPERF) -D -p -t < $(srcdir)/c-parse.gperf > test.out.4
! 	-diff -b $(srcdir)/expected.out.4 test.out.4
  	$(GPERF) -g -o -j1 -t -p -N is_reserved_word < $(srcdir)/gpc.gperf > test.out.5
  	-diff -b $(srcdir)/expected.out.5 test.out.5
  # prints out the help message

--- 67,73 -----
  	$(GPERF) -p -j 1 -o -a -g -t -k1,4,$$ < $(srcdir)/gplus.gperf > test.out.3
  	-diff -b $(srcdir)/expected.3 test.out.3
  	$(GPERF) -D -p -t < $(srcdir)/c-parse.gperf > test.out.4
! 	-diff -b $(srcdir)/expected.4 test.out.4
  	$(GPERF) -g -o -j1 -t -p -N is_reserved_word < $(srcdir)/gpc.gperf > test.out.5
  	-diff -b $(srcdir)/expected.5 test.out.5
  # prints out the help message
***************
*** 69,75
  	$(GPERF) -D -p -t < $(srcdir)/c-parse.gperf > test.out.4
  	-diff -b $(srcdir)/expected.out.4 test.out.4
  	$(GPERF) -g -o -j1 -t -p -N is_reserved_word < $(srcdir)/gpc.gperf > test.out.5
! 	-diff -b $(srcdir)/expected.out.5 test.out.5
  # prints out the help message
  	-$(GPERF) -h > test.out.6 2>&1 || [ a = a ]
  	-diff -b $(srcdir)/expected.out.6 test.out.6

--- 69,75 -----
  	$(GPERF) -D -p -t < $(srcdir)/c-parse.gperf > test.out.4
  	-diff -b $(srcdir)/expected.4 test.out.4
  	$(GPERF) -g -o -j1 -t -p -N is_reserved_word < $(srcdir)/gpc.gperf > test.out.5
! 	-diff -b $(srcdir)/expected.5 test.out.5
  # prints out the help message
  	-$(GPERF) -h > test.out.6 2>&1 || [ a = a ]
  	-diff -b $(srcdir)/expected.6 test.out.6
***************
*** 72,78
  	-diff -b $(srcdir)/expected.out.5 test.out.5
  # prints out the help message
  	-$(GPERF) -h > test.out.6 2>&1 || [ a = a ]
! 	-diff -b $(srcdir)/expected.out.6 test.out.6
  	@echo "only if, do, for, case, goto, else, while, and return should be found "
  	./aout -v < $(srcdir)/c.gperf > test.out.7
  	-diff -b $(srcdir)/expected.out.7 test.out.7

--- 72,78 -----
  	-diff -b $(srcdir)/expected.5 test.out.5
  # prints out the help message
  	-$(GPERF) -h > test.out.6 2>&1 || [ a = a ]
! 	-diff -b $(srcdir)/expected.6 test.out.6
  	@echo "only if, do, for, case, goto, else, while, and return should be found "
  	./aout -v < $(srcdir)/c.gperf > test.out.7
  	-diff -b $(srcdir)/expected.7 test.out.7
***************
*** 75,81
  	-diff -b $(srcdir)/expected.out.6 test.out.6
  	@echo "only if, do, for, case, goto, else, while, and return should be found "
  	./aout -v < $(srcdir)/c.gperf > test.out.7
! 	-diff -b $(srcdir)/expected.out.7 test.out.7
  
  .PHONY: clean
  clean:

--- 75,81 -----
  	-diff -b $(srcdir)/expected.6 test.out.6
  	@echo "only if, do, for, case, goto, else, while, and return should be found "
  	./aout -v < $(srcdir)/c.gperf > test.out.7
! 	-diff -b $(srcdir)/expected.7 test.out.7
  
  .PHONY: clean
  clean:

--
Jason Merrill
jason@jarthur.claremont.edu
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads