Bug 21164 - libjava tests uses absolute paths
Summary: libjava tests uses absolute paths
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.7.0
Assignee: Rainer Orth
URL: http://gcc.gnu.org/ml/gcc-patches/201...
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-22 18:06 UTC by Devang Patel
Modified: 2011-04-12 09:06 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-07-23 05:52:34


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Devang Patel 2005-04-22 18:06:51 UTC
libjava tests uses absolute paths e.g.

bytecompile /Volumes/SandBox/rt/src/gcc/libjava/testsuite/libjava.jni/noclass.java
bytecompile /Volumes/SandBox/rt/src/gcc/libjava/testsuite/libjava.jni/overload.java
bytecompile /Volumes/SandBox/rt/src/gcc/libjava/testsuite/libjava.jni/pr11951.java

This is very inconvenient to compare tests agains known base results.
Comment 1 Andrew Pinski 2005-04-27 00:24:33 UTC
Confirmed, seen also here:
<http://gcc.gnu.org/ml/gcc-regression/2005-04/msg00059.html>
native libjava.sum /Users/regress/tbox/cvs-gcc/gcc/libjava/testsuite/libjava.jar/simple.jar
native libjava.sum /Users/regress/tbox/native/build/powerpc-apple-darwin7.4.0/libjava/testsuite/
TestEarlyGC.exe
native libjava.sum /Users/regress/tbox/native/build/powerpc-apple-darwin7.4.0/libjava/testsuite/
TestLeak.exe
native libjava.sum /Users/regress/tbox/native/build/powerpc-apple-darwin7.4.0/libjava/testsuite/
TestMultiple.exe
native libjava.sum /Users/regress/tbox/native/build/powerpc-apple-darwin7.4.0/libjava/testsuite/
TestParent.exe
Comment 2 Rainer Orth 2011-04-11 12:16:38 UTC
This isn't specific to libjava.

Mine, patch posted.
Comment 3 Rainer Orth 2011-04-12 09:04:09 UTC
Author: ro
Date: Tue Apr 12 09:04:05 2011
New Revision: 172302

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172302
Log:
	libjava:
	PR testsuite/21164
	* testsuite/lib/libjava.exp: Load dg.exp.
	* testsuite/libjava.jar/jar.exp (gcj_jar_interpret): Strip srcdir
	from jarfile.
	Use result for messages.
	* testsuite/libjava.loader/loader.exp (gcj_loader_test_one): Pass
	errname to libjava_invoke, fix testname.

	gcc:
	PR testsuite/21164
	* lib/compat.exp (compat-execute): Declare unsupported after
	stripping path from src1.
	* lib/lto.exp (lto-execute): Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/lib/compat.exp
    trunk/gcc/testsuite/lib/lto.exp
    trunk/libjava/ChangeLog
    trunk/libjava/testsuite/lib/libjava.exp
    trunk/libjava/testsuite/libjava.jar/jar.exp
    trunk/libjava/testsuite/libjava.loader/loader.exp
Comment 4 Rainer Orth 2011-04-12 09:06:01 UTC
Fixed for 4.7.0.