Jaroslav,

You can use ld to run non-executable binary:

Linux (check /proc/self/map for exact version of ld used)

/lib/ld-2.20.so ./a.out

Solaris:

/lib/ld.so.1 ./a.out

-Dmitry


On 2015-10-07 15:15, Jaroslav Bachorik wrote:
> Please, review the following test change
> 
> Issue : https://bugs.openjdk.java.net/browse/JDK-8138579
> Webrev: http://cr.openjdk.java.net/~jbachorik/8138579/webrev.00
> 
> This test is exercising a custom launcher (executable). Since it is not
> possible to check in a file and prevent its executable flag the test
> sets the executable flag on the fly after it has copied over the
> platform specific launcher to a well known location.
> 
> However, setting the executable flag has started to fail on Solaris
> machines recently. I tracked down the failure to the fact that the
> launcher is being copied with the preserved attributes - including the
> owner and group. The original launcher owner and group differ from the
> user the test is run under and therefore the attempt to set the
> executable flag fails.
> 
> The proposed fix is not to preserve the file attributes - the launcher
> will be owned by the current user and the attempt to set the executable
> flag will succeed.
> 
> The patch has been tested on all supported platforms successfully.
> 
> Thanks,
> 
> -JB-


-- 
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.

Reply via email to