Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] JUnit test fails on Mac 32-bit

You should be able to force x86 arch by using -Dosgi.arch=x86 mvn
invocation parameter.


On 12-02-08 7:04 AM, ramesh gunjal wrote:
My JUnit test is failing on Mac 32-bit, it works fine on Mac 64-bit (and
all Windows and Linux). It gvies following error
[INFO] Command line:
/bin/sh -c cd /Users/newuser/ &&
/1.6.0.jdk/Contents/Home/bin/java -Dosgi.noShutdown=false
-Dosgi.os=macosx -Dosgi.arch=x86_64 -jar
10502.jar -data ------- /
An error has occurred. See the log file
[INFO] Reactor Summary:
[INFO] ............................. FAILURE [2.013s]
[INFO] Total time: 46.112s
[INFO] Finished at: Wed Feb 08 02:47:17 PST 2012
[INFO] Final Memory: 51M/111M
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-surefire-plugin:0.13.0:test (default-test) on
: There are test failures.
I think the problem is tycho uses "-Dosgi.arch=x86_64" default jvm
argument whereas I am running on 32-bit machine. Is there any bug or I
am doing something wrong? How can I owerwrite jvm osgi.arch parameter?
Is there any other way to fix it?
My test POM looks like
I also tried adding argLine but it did not work it shows both
-Dosgi.arch=x86_64 and -Dosgi.arch=x86


tycho-user mailing list

Back to the top