[Bug testsuite/32569] New: Use of different numbers in logfile test output makes diff output baloon

rob1weld at aol dot com gcc-bugzilla@gcc.gnu.org
Sun Jul 1 04:22:00 GMT 2007


When running diff on the log files output as a result of running "make -i
check"
we get a lot of unneccesary output. The tests create files with different
trailing numbers on the file they create. This baloons the diff files.

I can't see this being helpful to prevent collision since the log files all
have the same name (in this case gcc.log). I don't know how this helps "make
-j" since make should not attempt to run the same test twice, thus would not
output the same file twice in any instance.

When I do a directory listing of "gcc-4_3-build-5/gcc/testsuite/gcc/" I don't
see these int*.c files are being kept, they are deleted. This makes the number
at the end of the file really useless to me, not only do I not get to look at
the file but I get the number in the log so that the diff program can't work.


In the first example below, instead of calling the file "int1624900.c:2"
could we call it "20020402-3-Os.c". The name would have more meaning and
subsequent diffs of the log file would be against the same name thus they
would elimininate the line from the diff output.


Here are a few lines from three gcc.log files. All the output is the same
except for the lines starting with "int1624900.c:2", "int1622212.c:2" or
"int1621014.c:2" :


First run:

PASS: gcc.c-torture/execute/20020402-3.c execution,  -Os 
Executing on host: /opt/gcc-4_3-build-5/gcc/xgcc -B/opt/gcc-4_3-build-5/gcc/ 
-fno-show-column -c  -o int1624900.o
int1624900.c:2: error: size of array 'dummy' is negative
 compiler exited with status 1
 output is:
int1624900.c:2: error: size of array 'dummy' is negative


Second run:

PASS: gcc.c-torture/execute/20020402-3.c execution,  -Os
Executing on host: /opt/gcc-4_3-build-5/gcc/xgcc -B/opt/gcc-4_3-build-5/gcc/ 
-fno-show-column -c  -o int1622212.o
int1622212.c:2: error: size of array 'dummy' is negative
 compiler exited with status 1
 output is:
int1622212.c:2: error: size of array 'dummy' is negative


Third run:

PASS: gcc.c-torture/execute/20020402-3.c execution,  -Os
Executing on host: /opt/gcc-4_3-build-5/gcc/xgcc -B/opt/gcc-4_3-build-5/gcc/ 
-fno-show-column -c  -o int1621014.o
int1621014.c:2: error: size of array 'dummy' is negative
compiler exited with status 1
output is:
int1621014.c:2: error: size of array 'dummy' is negative



Running diff on the log files shows the temp filename as a difference.
If the testsuite used the same name these lines would be eliminated.

--- b5-gcc.log  2007-06-30 20:21:01.000000000 -0700
+++ b6-gcc.log  2007-06-30 20:21:10.000000000 -0700
-Test Run By root on Sat Jun 30 15:57:42 2007
+Test Run By root on Sat Jun 30 00:47:12 2007
@@ -8375,10 +8375,10 @@
 PASS: gcc.c-torture/execute/20020402-3.c execution,  -O3 -g 
 PASS: gcc.c-torture/execute/20020402-3.c compilation,  -Os 
 PASS: gcc.c-torture/execute/20020402-3.c execution,  -Os 
-int1624900.c:2: error: size of array 'dummy' is negative
+int1622212.c:2: error: size of array 'dummy' is negative
 compiler exited with status 1
 output is:
-int1624900.c:2: error: size of array 'dummy' is negative
+int1622212.c:2: error: size of array 'dummy' is negative
 PASS: gcc.c-torture/execute/20020404-1.c compilation,  -O0 
 PASS: gcc.c-torture/execute/20020404-1.c execution,  -O0 
@@ -9036,10 +9036,10 @@


-- 
           Summary: Use of different numbers in logfile test output makes
                    diff output baloon
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rob1weld at aol dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32569



More information about the Gcc-bugs mailing list