Running native code test

David Holmes david.holmes at oracle.com
Tue Dec 1 07:26:29 UTC 2015


Hi Carsten,

On 1/12/2015 8:21 AM, Carsten Varming wrote:
> Dear Ioi,
>
> Absolutely,
>
> diff -r 7606b8556225 test/Makefile
> --- a/test/Makefile     Thu Nov 26 13:13:03 2015 +0100
> +++ b/test/Makefile     Mon Nov 30 17:20:30 2015 -0500
> @@ -156,7 +156,7 @@
>     TESTNATIVE_DIR = $(JPRT_TESTNATIVE_PATH)
>   endif
>   ifdef TESTNATIVE_DIR
> -  JTREG_NATIVE_PATH = -nativepath:$(shell $(GETMIXEDPATH)
> "$(TESTNATIVE_DIR)/hotspot/jtreg/native")
> +  JTREG_NATIVE_PATH = -nativepath:$(shell $(GETMIXEDPATH)
> "$(TESTNATIVE_DIR)/hotspot/jtreg/native/lib")
>   endif

In hotspot/make/test/JtregNative.gmk we have:

BUILD_HOTSPOT_JTREG_OUTPUT_DIR := 
$(BUILD_OUTPUT)/support/test/hotspot/jtreg/native

so the above patch should not be needed.

David
-----


>
>   # Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results)
>
> Carsten
>
> On Mon, Nov 30, 2015 at 5:17 PM, Ioi Lam <ioi.lam at oracle.com> wrote:
>
>> Your patch seems to have been stripped by the mailer. Is it possible to
>> just include it as plain text in the e-mail?
>>
>> Thanks
>> - Ioi
>>
>>
>> On 11/30/15 1:34 PM, Carsten Varming wrote:
>>
>>> Hi everyone,
>>>
>>> I was recently trying to run some tests that use native code, e.g.,
>>> hotspot/runtime/SameObject/SameObject.java and found that I had to apply
>>> the attached diff to get the tests to work.
>>>
>>> I am doing something wrong or is this a trivial bug?
>>>
>>> Carsten
>>>
>>
>>


More information about the hotspot-runtime-dev mailing list