Skip to content

Commit

Permalink
Merge pull request #1231 from T-Svensson/iso/allow-override-w32.ascii…
Browse files Browse the repository at this point in the history
…-from-and-cmdline

Allow overriding w32.ascii when running test suite
  • Loading branch information
matthiasblaesing authored Jul 15, 2020
2 parents e857318 + 8326059 commit d8ce23e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Next Release (5.7.0)

Features
--------
* [#1231](https://github.com/java-native-access/jna/pull/1231): The test suite can now be executed on Windows using either ANSI or UNICODE win32 API by passing `-Dw32.ascii=true/false` to ant. Previously, UNICODE was always used. - [@T-Svensson](https://github.com/T-Svensson/)

Bug Fixes
---------
Expand Down
5 changes: 5 additions & 0 deletions contrib/platform/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,18 @@ com.sun.jna.platform.wince;version=${osgi.version}
<echo>tests.platform.windows=${tests.platform.windows}</echo>
<echo>tests.platform.linux=${tests.platform.linux}</echo>
<echo>tests.platform.unix=${tests.platform.unix}</echo>
<propertyset id="native.api.windows">
<propertyref name="w32.ascii"/>
</propertyset>
<junit fork="${test.fork}" failureproperty="testfailure" tempdir="${build.dir}">
<!-- optionally run headless -->
<syspropertyset refid="headless"/>
<!-- avoid VM conflicts with JNA protected mode -->
<env key="${ld.preload.name}" file="${libjsig}"/>
<!-- Ignore any system install of JNA -->
<sysproperty key="jna.builddir" file="${file.reference.jna.build}"/>
<!-- Optionally force native API on Windows -->
<syspropertyset refid="native.api.windows"/>
<jvmarg value="${vmopt.arch}"/>
<classpath><path path="${run.test.classpath}"/><path path="${file.reference.jna.build}/test-classes"/></classpath>
<formatter type="brief" usefile="false"/>
Expand Down

0 comments on commit d8ce23e

Please sign in to comment.