diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/116-nodex2oat/run | 3 | ||||
-rw-r--r-- | test/MyClassNatives/MyClassNatives.java | 12 |
2 files changed, 12 insertions, 3 deletions
diff --git a/test/116-nodex2oat/run b/test/116-nodex2oat/run index 5ffeecd..2df6705 100755 --- a/test/116-nodex2oat/run +++ b/test/116-nodex2oat/run @@ -17,6 +17,9 @@ # Remove prebuild from the flags, this test is for testing not having oat files. flags="${@/--prebuild/}" +# Use the non-prebuild script. +RUN="${RUN/push-and-run-prebuilt-test-jar/push-and-run-test-jar}" + # Make sure we can run without an oat file, echo "Run -Xnodex2oat" ${RUN} ${flags} --runtime-option -Xnodex2oat diff --git a/test/MyClassNatives/MyClassNatives.java b/test/MyClassNatives/MyClassNatives.java index b5e0204..fab153b 100644 --- a/test/MyClassNatives/MyClassNatives.java +++ b/test/MyClassNatives/MyClassNatives.java @@ -80,16 +80,22 @@ class MyClassNatives { Object o248, Object o249, Object o250, Object o251, Object o252, Object o253); native void withoutImplementation(); - + native static void stackArgsIntsFirst(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10, float f1, float f2, float f3, float f4, float f5, float f6, float f7, float f8, float f9, float f10); - + native static void stackArgsFloatsFirst(float f1, float f2, float f3, float f4, float f5, float f6, float f7, float f8, float f9, float f10, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10); - + native static void stackArgsMixed(int i1, float f1, int i2, float f2, int i3, float f3, int i4, float f4, int i5, float f5, int i6, float f6, int i7, float f7, int i8, float f8, int i9, float f9, int i10, float f10); + + static native double logD(double d); + static native float logF(float f); + static native boolean returnTrue(); + static native boolean returnFalse(); + static native int returnInt(); } |