On Fri, 18 Aug 2023 10:06:19 GMT, Vladimir Petko <vpe...@openjdk.org> wrote:

> 8314491: Linux: jexec launched via PATH fails to find java

When jexec is found in the PATH, e.g. we run ``$jexec myjar.jar``, the 
`argv[0]` contains `jexec` and Java can not be found.

Running updated test without fix in jexec.c:


$make test CONF=linux-x86_64-server-slowdebug 
TEST=test/jdk/tools/launcher/Jexec.java 
.....

++++Test Output++++
  can't locate java: No such file or directory
++++Test Stack Trace++++
....
==============================
Test summary
==============================
   TEST                                              TOTAL  PASS  FAIL ERROR   
>> jtreg:test/jdk/tools/launcher/Jexec.java              1     0     1     0 <<
==============================
TEST FAILURE


Running test after fixing jexec.c:


$ make test CONF=linux-x86_64-server-slowdebug 
TEST=test/jdk/tools/launcher/Jexec.java 
....
==============================
Test summary
==============================
   TEST                                              TOTAL  PASS  FAIL ERROR   
   jtreg:test/jdk/tools/launcher/Jexec.java              1     1     0     0   
==============================
TEST SUCCESS


Rerun jdk_launcher tests:

$ make test CONF=linux-x86_64-server-slowdebug TEST=jdk_launcher
...
==============================
Test summary
==============================
   TEST                                              TOTAL  PASS  FAIL ERROR   
   jtreg:test/jdk:jdk_launcher                         124   124     0     0   
==============================
TEST SUCCESS

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15343#issuecomment-1683680600

Reply via email to