This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 89f3e55b7bb9de9251e4d224c06c15201ece0df3 Author: Josh Tynjala <[email protected]> AuthorDate: Tue Oct 18 09:31:00 2022 -0700 Ant: force locale for junit tests because they compare en_US error strings (references #221) --- compiler-externc/src/test/build.xml | 4 ++++ compiler-jx/src/test/build.xml | 8 ++++++++ compiler/src/test/build.xml | 4 ++++ formatter/src/test/build.xml | 2 ++ 4 files changed, 18 insertions(+) diff --git a/compiler-externc/src/test/build.xml b/compiler-externc/src/test/build.xml index b839c8143..273f00522 100644 --- a/compiler-externc/src/test/build.xml +++ b/compiler-externc/src/test/build.xml @@ -134,6 +134,8 @@ printsummary="true" showoutput="true" haltonerror="true" haltonfailure="true" failureproperty="tests.unit.failed"> + <jvmarg value="-Duser.language=en"/> + <jvmarg value="-Duser.country=US"/> <classpath> <pathelement location="${compiler.externc}/target/classes"/> <pathelement location="${compiler.externc}/target/test-classes"/> @@ -171,6 +173,8 @@ printsummary="true" showoutput="true" haltonerror="true" haltonfailure="true" failureproperty="tests.unit.failed"> + <jvmarg value="-Duser.language=en"/> + <jvmarg value="-Duser.country=US"/> <classpath> <pathelement location="${compiler.externc}/target/classes"/> <pathelement location="${compiler.externc}/target/test-classes"/> diff --git a/compiler-jx/src/test/build.xml b/compiler-jx/src/test/build.xml index 87852399f..e508efd62 100644 --- a/compiler-jx/src/test/build.xml +++ b/compiler-jx/src/test/build.xml @@ -91,6 +91,8 @@ haltonerror="true" haltonfailure="true" failureproperty="tests.unit.failed"> <jvmarg value="-Dfile.encoding=UTF-8"/> + <jvmarg value="-Duser.language=en"/> + <jvmarg value="-Duser.country=US"/> <classpath> <pathelement location="${compiler}/target/test-classes"/> <pathelement location="${compiler}/../compiler-test-utils/target/classes"/> @@ -125,6 +127,8 @@ haltonerror="true" haltonfailure="true" failureproperty="tests.unit.failed"> <jvmarg value="-Dfile.encoding=UTF-8"/> + <jvmarg value="-Duser.language=en"/> + <jvmarg value="-Duser.country=US"/> <classpath> <pathelement location="${compiler}/target/test-classes"/> <pathelement location="${compiler}/../compiler-test-utils/target/classes"/> @@ -155,6 +159,8 @@ printsummary="true" showoutput="true" haltonerror="true" haltonfailure="true" failureproperty="tests.unit.failed"> + <jvmarg value="-Duser.language=en"/> + <jvmarg value="-Duser.country=US"/> <classpath> <pathelement location="${compiler}/target/test-classes"/> <pathelement location="${compiler}/../compiler-test-utils/target/classes"/> @@ -184,6 +190,8 @@ printsummary="true" showoutput="true" haltonerror="true" haltonfailure="true" failureproperty="tests.unit.failed"> + <jvmarg value="-Duser.language=en"/> + <jvmarg value="-Duser.country=US"/> <classpath> <pathelement location="${compiler}/target/test-classes"/> <pathelement location="${compiler}/../compiler-test-utils/target/classes"/> diff --git a/compiler/src/test/build.xml b/compiler/src/test/build.xml index c2804abfa..d1f161182 100644 --- a/compiler/src/test/build.xml +++ b/compiler/src/test/build.xml @@ -305,6 +305,8 @@ printsummary="true" showoutput="true" haltonerror="true" haltonfailure="true" failureproperty="tests.unit.failed"> + <jvmarg value="-Duser.language=en"/> + <jvmarg value="-Duser.country=US"/> <classpath> <pathelement location="${compiler}/target/test-classes"/> <fileset dir="${compiler}/lib/external" includes="**/*.jar"/> @@ -347,6 +349,8 @@ printsummary="true" showoutput="true" haltonerror="true" haltonfailure="true" failureproperty="tests.unit.failed"> + <jvmarg value="-Duser.language=en"/> + <jvmarg value="-Duser.country=US"/> <classpath> <pathelement location="${compiler}/target/test-classes"/> <fileset dir="${compiler}/lib" includes="**/*.jar"/> diff --git a/formatter/src/test/build.xml b/formatter/src/test/build.xml index 487753b54..1de18fbe1 100644 --- a/formatter/src/test/build.xml +++ b/formatter/src/test/build.xml @@ -63,6 +63,8 @@ printsummary="true" showoutput="true" haltonerror="true" haltonfailure="true" failureproperty="tests.unit.failed"> + <jvmarg value="-Duser.language=en"/> + <jvmarg value="-Duser.country=US"/> <classpath> <pathelement location="${formatter}/target/classes"/> <pathelement location="${formatter}/target/test-classes"/>
