PATCH mkcheck.in

Loren James Rittle rittle@latour.rsch.comm.mot.com
Wed Jan 17 03:22:00 GMT 2001


Currently, none of the data files written by tests found in
testsuite/27_io are being checked after a run when $srcdir != $objdir.
I spotted this problem while adding the recently posted test.  The
problem is that NAME is qualified with a relative path that doesn't
exist in the $objdir.

Checked in already bootstrapped tree on i386-unknown-freebsd4.2.

In addition to patching mkcheck.in, please run:

touch testsuite/27_io/filebuf_members-1.txt
touch testsuite/27_io/ifstream_members-1.txt
cp testsuite/27_io/ostream_inserter_char-1.tst \
   testsuite/27_io/ostream_inserter_char-1.txt

[Reminder: I have no CVS write access.]

2001-01-17  Loren J. Rittle  <ljrittle@acm.org>

	* mkcheck.in: Construct file names that match $objdir structure.
	* testsuite/27_io/filebuf_members-1.txt: New file.
	* testsuite/27_io/ifstream_members-1.txt: New file.
	* testsuite/27_io/ostream_inserter_char-1.txt: New file.

Index: mkcheck.in
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/mkcheck.in,v
retrieving revision 1.45
diff -p -r1.45 mkcheck.in
*** mkcheck.in	2000/12/21 22:08:38	1.45
--- mkcheck.in	2001/01/17 09:54:03
*************** test_for_output()
*** 261,269 ****
      # this is the name of the resulting diff file, if any
      DIFF_FILE="`echo $TEST_NAME | sed 's/cc$/diff/'`"
      # construct wildcard names, ie for $NAME=filebuf.cc, makes "filebuf*.tst"
!     DATA_FILES="`echo $NAME | sed 's/\.cc/\*\.tst/g'`"
      # make sure there is at least one, then go
!     ST_E="`echo $NAME | sed 's/\.cc/\-1\.tst/g'`"
      if [ -f $ST_E ]; then
          # list of actual files that match the wildcard above, ie
          # "filebuf-1.tst"
--- 261,269 ----
      # this is the name of the resulting diff file, if any
      DIFF_FILE="`echo $TEST_NAME | sed 's/cc$/diff/'`"
      # construct wildcard names, ie for $NAME=filebuf.cc, makes "filebuf*.tst"
!     DATA_FILES="`echo $TEST_NAME | sed 's/\.cc/\*\.tst/g'`"
      # make sure there is at least one, then go
!     ST_E="`echo $TEST_NAME | sed 's/\.cc/\-1\.tst/g'`"
      if [ -f $ST_E ]; then
          # list of actual files that match the wildcard above, ie
          # "filebuf-1.tst"


More information about the Gcc-patches mailing list