[foreign] test target fails on windows
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Jan 16 13:57:44 UTC 2019
The following patch seems to fix the issue - Jorn, perhaps you have been
building/running tests with 'disable-warnings-as-errors' ?
diff -r 364dc06dd3ed test/jdk/com/sun/tools/jextract/testEnum/enums.h
--- a/test/jdk/com/sun/tools/jextract/testEnum/enums.h Wed Jan 16
12:45:05 2019 +0000
+++ b/test/jdk/com/sun/tools/jextract/testEnum/enums.h Wed Jan 16
13:57:29 2019 +0000
@@ -42,10 +42,17 @@
I_VALUE2 = -5345345
};
+#ifndef _WIN64
enum LongEnum {
L_VALUE1 = -4564565645L,
L_VALUE2 = 45645645645L
};
+#else
+enum LongEnum {
+ L_VALUE1 = -5345345L,
+ L_VALUE2 = -5345345
+};
+#endif
EXPORT int i_value1_func();
EXPORT int i_value2_func();
Maurizio
On 16/01/2019 12:14, Maurizio Cimadamore wrote:
> Hi,
> I've tried to run tests on Windows the 'usual' way, but I get the
> following failures - is this something known?
>
> c:\cygwin64\home\mcimadam\panama\closed\open\test\jdk\com\sun\tools\jextract\testenum\enums.h(46):
> error C2220: warning treated as error - no 'object' file generated
> c:\cygwin64\home\mcimadam\panama\closed\open\test\jdk\com\sun\tools\jextract\testenum\enums.h(46):
> warning C4309: 'initializing': truncation of constant value
> c:\cygwin64\home\mcimadam\panama\closed\open\test\jdk\com\sun\tools\jextract\testenum\enums.h(48):
> warning C4309: 'initializing': truncation of constant value
> JtregNativeJdk.gmk:106: recipe for target
> '/cygdrive/c/cygwin64/home/mcimadam/panama/closed/build/windows-x64/support/test/jdk/jtreg/native/support/libEnums/libEnums.obj'
> failed
> make[3]: ***
> [/cygdrive/c/cygwin64/home/mcimadam/panama/closed/build/windows-x64/support/test/jdk/jtreg/native/support/libEnums/libEnums.obj]
> Error 1
> make[3]: *** Waiting for unfinished jobs....
> c:/cygwin64/home/mcimadam/panama/closed/open/test/jdk/com/sun/tools/jextract/testStruct/libStruct.c(106):
> error C2220: warning treated as error - no 'object' file generated
> c:/cygwin64/home/mcimadam/panama/closed/open/test/jdk/com/sun/tools/jextract/testStruct/libStruct.c(106):
> warning C4477: 'printf' : format string '%lu' requires an argument of
> type 'unsigned long', but variadic argument 1 has type '::size_t'
> c:/cygwin64/home/mcimadam/panama/closed/open/test/jdk/com/sun/tools/jextract/testStruct/libStruct.c(106):
> note: consider using '%zu' in the format string
>
> (**) - the way I run test is this:
>
> make run-test-jdk_foreign
>
>
More information about the panama-dev
mailing list