testSyscallOpen will try to open a non-existent file "a.file", this will return
-ENOENT (-2). But on PPC64, the value in GPR3 are unsigned. so the current
code will get a positive 2 back. This makes testSyscallOpen fail.
Here is the failure log:
testSyscallOpen(frysk.proc.TestTaskSyscallObserver)junit.framework.AssertionFailedError:
open of a.file failed
at
java.lang.VMThrowable._ZN4java4lang11VMThrowable16fillInStackTraceEPNS0_9ThrowableE(libgcj.so.7)
at java.lang.Throwable._ZN4java4lang9Throwable16fillInStackTraceEv(libgcj.so.7)
at java.lang.Throwable._ZN4java4lang9ThrowableC1EPNS0_6StringE(libgcj.so.7)
at java.lang.Error._ZN4java4lang5ErrorC1EPNS0_6StringE(libgcj.so.7)
at junit.framework.AssertionFailedError(TestRunner)
at junit.framework.Assert(TestRunner)
at junit.framework.Assert(TestRunner)
at frysk.proc.TestTaskSyscallObserver(TestRunner)
at
java.lang.reflect.Method._ZN4java4lang7reflect6Method6invokeEPNS0_6ObjectEP6JArrayIS4_E(libgcj.so.7)
at frysk.junit.Runner(TestRunner)
at TestRunner(TestRunner)
at
gnu.java.lang.MainThread._ZN3gnu4java4lang10MainThread9call_mainEv(libgcj.so.7)
at gnu.java.lang.MainThread._ZN3gnu4java4lang10MainThread3runEv(libgcj.so.7)