Bug #272
Updated by Alexander Z. about 11 years ago
OS: Linux
ARCH: x86
TOOLCHAIN: GCC 4.4.3
Sample output:
\#\# COMMAND: /opt/android/android-sdk-linux/platform-tools/adb -s emulator-5558 shell chmod 0755 /data/local/tmp/ndk-tests/libtest4_foo.so
Running device test [x86]: test-gnustl_shared-exception (Lib1_catching_lib2_throwing)
/opt/android/android-sdk-linux/platform-tools/adb -s "emulator-5558" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./Lib1_catching_lib2_throwing"
terminate called after throwing an instance of 'std::runtime_error'
what(): OK: Throw in lib2, catch in lib1!
[1] Segmentation fault LD_LIBRARY_PATH=...
test-return-code:139
---> TEST FAILED!!
Running device test [x86]: test-gnustl_shared-exception (Lib_catching_lib_throwing)
/opt/android/android-sdk-linux/platform-tools/adb -s "emulator-5558" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./Lib_catching_lib_throwing"
terminate called after throwing an instance of 'std::runtime_error'
what(): OK: Throw in lib, catch in lib!
[1] Segmentation fault LD_LIBRARY_PATH=...
test-return-code:139
---> TEST FAILED!!
Running device test [x86]: test-gnustl_shared-exception (exec_catching_lib2_throwing)
/opt/android/android-sdk-linux/platform-tools/adb -s "emulator-5558" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./exec_catching_lib2_throwing"
terminate called after throwing an instance of 'std::runtime_error'
what(): OK: Throw in lib2, catch in exec!
[1] Segmentation fault LD_LIBRARY_PATH=...
test-return-code:139
---> TEST FAILED!!
Running device test [x86]: test-gnustl_shared-exception (exec_catching_lib_throwing)
/opt/android/android-sdk-linux/platform-tools/adb -s "emulator-5558" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./exec_catching_lib_throwing"
terminate called after throwing an instance of 'std::runtime_error'
what(): OK: Throw in lib, catch in exec!
[1] Segmentation fault LD_LIBRARY_PATH=...
test-return-code:139
---> TEST FAILED!!
Running device test [x86]: test-gnustl_shared-exception (exec_throwing_lib_catching)
/opt/android/android-sdk-linux/platform-tools/adb -s "emulator-5558" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./exec_throwing_lib_catching"
link_image[1891]: 1809 could not load needed library 'libtest2_foo.so' for './exec_throwing_lib_catching' (reloc_library[1306]: 1809 cannot locate '_Z3foov'...
)CANNOT LINK EXECUTABLE
test-return-code:255
---> TEST FAILED!!