Use of absolute path to JTreg tool in IcedTea6 HEAD

Pavel Tisnovsky ptisnovs at redhat.com
Fri Dec 23 06:46:38 PST 2011


Hi all,

I've made following change in IcedTea6 HEAD:

diff -r 8021c50df762 -r 5f30a4f16734 Makefile.am
--- a/Makefile.am	Fri Dec 23 01:09:04 2011 +0000
+++ b/Makefile.am	Fri Dec 23 14:31:49 2011 +0100
@@ -193,7 +193,7 @@
 # Sources list

 REWRITER_SRCS = $(top_srcdir)/rewriter/com/redhat/rewriter/ClassRewriter.java
-JTREG_SRCS = $(top_srcdir)/src/jtreg
+JTREG_SRCS = $(abs_top_srcdir)/src/jtreg

 # Patch list

This change ensures that JTreg tool would be able to find the
essential file "excludelist.jdk.jtx" now stored in src/jtreg subdirectory.
There's also other issue: JTreg tool usually forks it's subprocesses in other directories.

If the JTREG_SRCS is set to $(top_srcdir)/src/jtreg, the JTreg option
"-exclude:$(JTREG_SRCS)/excludelist.jdk.jtx" is not set correctly
and JTreg tool then prints following error message:

if test "x${DISPLAY}" = "x"; then XVFB_RUN=""; fi; \
	if test "x${DISPLAY}" = "x" && test "x${XVFB_RUN}" = "x"; then \
		echo "WARNING: DISPLAY not set and xvfb-run not found"; \
	fi; \
	${XVFB_RUN} \
	/build/icedtea6/bootstrap/jdk1.6.0/bin/java -jar test/jtreg.jar -v1 -a -ignore:quiet \
		-w:test/jdk/JTwork -r:test/jdk/JTreport \
		 \
		-jdk:/build/icedtea6/openjdk.build/j2sdk-image \
		-exclude:./src/jtreg/excludelist.jdk.jtx \
		 \
		`pwd`/openjdk/jdk/test \
	    | tee test/check-jdk.log
Directory "test/jdk/JTwork/scratch" not found: creating
Error: Bad parameters specified: One of the files you specified was not found. The error reported was:
/build/icedtea6/openjdk/jdk/test/./src/jtreg/excludelist.jdk.jtx (No such file or directory)



Any comments are welcome
Pavel

PS: Merry Christmas everyone!



More information about the distro-pkg-dev mailing list