OSDN Git Service

Add test for getError() of NativeBridge.
authorYanbing Jiang <yanbing.jiang@intel.com>
Tue, 17 Jan 2017 05:23:43 +0000 (13:23 +0800)
committerJosh Gao <jmgao@google.com>
Tue, 16 May 2017 23:28:50 +0000 (16:28 -0700)
commita402fbc2962e8cda1111449a47c26de69b33d669
tree6d461b1918782becbd0f3972ea9240f4f4b4bf05
parent95cf1719669f914d086c9e394289b54f75cc48cf
Add test for getError() of NativeBridge.

NativeBridge v3 introduced getError() of which the functionality
is same as dlerror(). This patch forces the routine of ART to
NativeBridge to execute getError() on ART host test by loading
invalid library from Java.

Test: make test-art-host-run-test-115-native-bridge
Change-Id: Iba389c22b6587176cbfe57d42af49041560c5b00
Signed-off-by: Zhenhua WANG <zhenhua.wang@intel.com>
(cherry picked from commit 2abb686ddbf7c8fe54f2c1cb41ab90d7c8b04c7a)
test/115-native-bridge/expected.txt
test/115-native-bridge/nativebridge.cc
test/115-native-bridge/run
test/115-native-bridge/src/NativeBridgeMain.java