aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-java/java/engine.c
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2016-08-04 12:00:41 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2016-08-08 20:17:04 +0000
commit188c160b658dc96a70afb08e80286866d6b4c507 (patch)
treeea72b10145ed31ffce5ec7b48051a391d47d1909 /tests/auto/blackbox/testdata-java/java/engine.c
parent2c916bea64bc480282eeddfc1d55042be10fa4e9 (diff)
Split off the Java-related blackbox tests
They take an extraordinary amount of time and should thus run in parallel to the other tests. Change-Id: I435dd5506cc3f26e351c700ce6be2476d041b6af Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata-java/java/engine.c')
-rw-r--r--tests/auto/blackbox/testdata-java/java/engine.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-java/java/engine.c b/tests/auto/blackbox/testdata-java/java/engine.c
new file mode 100644
index 000000000..d1baf6535
--- /dev/null
+++ b/tests/auto/blackbox/testdata-java/java/engine.c
@@ -0,0 +1,10 @@
+#include <jni.h>
+
+// javac 1.8 is required to generate native headers
+#ifdef JNI_VERSION_1_8
+#include "Car_InternalCombustionEngine.h"
+#endif
+
+JNIEXPORT void JNICALL Java_Car_00024InternalCombustionEngine_run(JNIEnv *env, jobject obj) {
+ printf("Native code performing complex internal combustion process (%p, %p)!\n", env, obj);
+}