From 5469080ad5f8ef40b5eb071a96dde4bea931c7cf Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Tue, 5 Jan 2010 09:17:44 +0100 Subject: Fixed 4577 - CLASSPATH not correctly set for Java tests --- scripts/TestUtil.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scripts/TestUtil.py') diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 6fb89a9bd69..38c3375d207 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -205,9 +205,6 @@ def configurePaths(): addClasspath(os.path.join(javaDir, "IceE.jar")) os.environ["CLASSPATH"] = os.path.join(javaDir, "IceE.jar") + os.pathsep + os.getenv("CLASSPATH", "") else: - # The IceTest.jar is never installed, and so will always live - # in the toplevel java/lib directory. - addClasspath(os.path.join(toplevel, "java", "lib", "IceTest.jar")) # The Ice.jar and Freeze.jar comes from the installation # directory or the toplevel dir. javaDir = os.path.join(getIceDir("java"), "lib") @@ -1253,7 +1250,7 @@ def getTestEnv(lang, testdir): if lang == "cpp": addLdPath(os.path.join(testdir), env) elif lang == "java": - addClasspath(os.path.join(testdir, "classes"), env) + addClasspath(os.path.join(toplevel, "java", "lib", "IceTest.jar")) return env; def getTestName(): -- cgit v1.2.3