Actions
Bug #757
closedtests/device/test-wait fails on x86 device
Start date:
12/20/2014
Due date:
% Done:
100%
Estimated time:
CPU Architecture:
x86
Host OS:
Toolchain:
Android version:
CrystaX NDK Version:
Description
## COMMAND: cd /Volumes/android/ndk/out/tests/gcc4.9/build/test-wait
## COMMAND: /Volumes/android/ndk/platform/ndk/ndk-build -j1 -B APP_ABI=x86 APP_LDFLAGS= APP_CFLAGS=
rm -f ./libs/arm64-v8a/lib*.so ./libs/armeabi/lib*.so ./libs/armeabi-v7a/lib*.so ./libs/armeabi-v7a-hard/lib*.so ./libs/mips/lib*.so ./libs/p/lib*.so ./libs/parm64-v8a/lib*.so ./libs/parmeabi/lib*.so ./libs/parmeabi-v7a/lib*.so ./libs/parmeabi-v7a-hard/lib*.so ./libs/pbcarm64-v8a/lib*.so ./libs/pbcarmeabi/lib*.so ./libs/pbcarmeabi-v7a/lib*.so ./libs/pbcarmeabi-v7a-hard/lib*.so ./libs/pbcmips/lib*.so ./libs/pbcmips64/lib*.so ./libs/pbcx86/lib*.so ./libs/pbcx86_64/lib*.so ./libs/pmips/lib*.so ./libs/pmips64/lib*.so ./libs/px86/lib*.so ./libs/px86_64/lib*.so ./libs/x86/lib*.so ./libs/x86_64/lib*.so
rm -f ./libs/arm64-v8a/gdbserver ./libs/armeabi/gdbserver ./libs/armeabi-v7a/gdbserver ./libs/armeabi-v7a-hard/gdbserver ./libs/mips/gdbserver ./libs/p/gdbserver ./libs/parm64-v8a/gdbserver ./libs/parmeabi/gdbserver ./libs/parmeabi-v7a/gdbserver ./libs/parmeabi-v7a-hard/gdbserver ./libs/pbcarm64-v8a/gdbserver ./libs/pbcarmeabi/gdbserver ./libs/pbcarmeabi-v7a/gdbserver ./libs/pbcarmeabi-v7a-hard/gdbserver ./libs/pbcmips/gdbserver ./libs/pbcmips64/gdbserver ./libs/pbcx86/gdbserver ./libs/pbcx86_64/gdbserver ./libs/pmips/gdbserver ./libs/pmips64/gdbserver ./libs/px86/gdbserver ./libs/px86_64/gdbserver ./libs/x86/gdbserver ./libs/x86_64/gdbserver
rm -f ./libs/arm64-v8a/gdb.setup ./libs/armeabi/gdb.setup ./libs/armeabi-v7a/gdb.setup ./libs/armeabi-v7a-hard/gdb.setup ./libs/mips/gdb.setup ./libs/p/gdb.setup ./libs/parm64-v8a/gdb.setup ./libs/parmeabi/gdb.setup ./libs/parmeabi-v7a/gdb.setup ./libs/parmeabi-v7a-hard/gdb.setup ./libs/pbcarm64-v8a/gdb.setup ./libs/pbcarmeabi/gdb.setup ./libs/pbcarmeabi-v7a/gdb.setup ./libs/pbcarmeabi-v7a-hard/gdb.setup ./libs/pbcmips/gdb.setup ./libs/pbcmips64/gdb.setup ./libs/pbcx86/gdb.setup ./libs/pbcx86_64/gdb.setup ./libs/pmips/gdb.setup ./libs/pmips64/gdb.setup ./libs/px86/gdb.setup ./libs/px86_64/gdb.setup ./libs/x86/gdb.setup ./libs/x86_64/gdb.setup
[x86] Compile : test_wait-dynamic <= test_wait.c
/Volumes/android/ndk/platform/ndk/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-gcc -MMD -MP -MF ./obj/local/x86/objs/test_wait-dynamic/test_wait.o.d -ffunction-sections -funwind-tables -no-canonical-prefixes -fstack-protector -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -Ijni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -c -I/Volumes/android/ndk/platform/ndk/sources/crystax/include -I/Volumes/android/ndk/platform/ndk/platforms/android-9/arch-x86/usr/include jni/test_wait.c -o ./obj/local/x86/objs/test_wait-dynamic/test_wait.o
[x86] Prebuilt : libcrystax.so <= <NDK>/sources/crystax/libs/x86/
cp -f /Volumes/android/ndk/platform/ndk/sources/crystax/libs/x86/libcrystax.so obj/local/x86/libcrystax.so
[x86] Executable : test_wait-dynamic
/Volumes/android/ndk/platform/ndk/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++ -Wl,--gc-sections -Wl,-z,nocopyreloc --sysroot=/Volumes/android/ndk/platform/ndk/platforms/android-9/arch-x86 -Wl,-rpath-link=/Volumes/android/ndk/platform/ndk/platforms/android-9/arch-x86/usr/lib -Wl,-rpath-link=./obj/local/x86 ./obj/local/x86/objs/test_wait-dynamic/test_wait.o -lgcc ./obj/local/x86/libcrystax.so -no-canonical-prefixes -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -L/Volumes/android/ndk/platform/ndk/sources/crystax/libs/x86 -lc -lm -o ./obj/local/x86/test_wait-dynamic
[x86] Install : test_wait-dynamic => libs/x86/test_wait-dynamic
install -p ./obj/local/x86/test_wait-dynamic ./libs/x86/test_wait-dynamic
/Volumes/android/ndk/platform/ndk/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-strip --strip-unneeded ./libs/x86/test_wait-dynamic
[x86] Compile : test_wait-static <= test_wait.c
/Volumes/android/ndk/platform/ndk/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-gcc -MMD -MP -MF ./obj/local/x86/objs/test_wait-static/test_wait.o.d -ffunction-sections -funwind-tables -no-canonical-prefixes -fstack-protector -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -Ijni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -c -I/Volumes/android/ndk/platform/ndk/sources/crystax/include -I/Volumes/android/ndk/platform/ndk/platforms/android-9/arch-x86/usr/include jni/test_wait.c -o ./obj/local/x86/objs/test_wait-static/test_wait.o
[x86] Executable : test_wait-static
/Volumes/android/ndk/platform/ndk/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++ -Wl,--gc-sections -Wl,-z,nocopyreloc --sysroot=/Volumes/android/ndk/platform/ndk/platforms/android-9/arch-x86 -Wl,-rpath-link=/Volumes/android/ndk/platform/ndk/platforms/android-9/arch-x86/usr/lib -Wl,-rpath-link=./obj/local/x86 ./obj/local/x86/objs/test_wait-static/test_wait.o /Volumes/android/ndk/platform/ndk/sources/crystax/libs/x86/libcrystax.a -lgcc -no-canonical-prefixes -u __crystax_on_load -u __crystax_on_unload -Wl,-z,muldefs -static -Wl,--eh-frame-hdr -Wl,--eh-frame-hdr -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -L/Volumes/android/ndk/platform/ndk/sources/crystax/libs/x86 -lc -lm -o ./obj/local/x86/test_wait-static
[x86] Install : test_wait-static => libs/x86/test_wait-static
install -p ./obj/local/x86/test_wait-static ./libs/x86/test_wait-static
/Volumes/android/ndk/platform/ndk/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-strip --strip-unneeded ./libs/x86/test_wait-static
[x86] Install : libcrystax.so => libs/x86/libcrystax.so
install -p ./obj/local/x86/libcrystax.so ./libs/x86/libcrystax.so
/Volumes/android/ndk/platform/ndk/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-strip --strip-unneeded ./libs/x86/libcrystax.so
/opt/android/android-sdk-mac/platform-tools/adb -s "DellVenue7000165032" shell "getprop ro.product.cpu.abi"
x86
0
/opt/android/android-sdk-mac/platform-tools/adb -s "DellVenue7000165032" shell "getprop ro.product.cpu.abi2"
armeabi-v7a
0
CPU_ABIS=x86 armeabi-v7a armeabi-v7a-hard
Running device test on DellVenue7000165032 [x86]: /Volumes/android/ndk/platform/ndk/tests/device/test-wait
/opt/android/android-sdk-mac/platform-tools/adb -s "DellVenue7000165032" shell "ls /data/local/tmp 1>/dev/null 2>&1"
0
/opt/android/android-sdk-mac/platform-tools/adb -s "DellVenue7000165032" shell "ls /data/local/tmp/ndk-tests 1>/dev/null 2>&1 || mkdir /data/local/tmp/ndk-tests"
0
## COMMAND: /opt/android/android-sdk-mac/platform-tools/adb -s DellVenue7000165032 push /Volumes/android/ndk/out/tests/gcc4.9/build/test-wait/libs/x86/libcrystax.so /data/local/tmp/ndk-tests/libcrystax.so
2946 KB/s (801644 bytes in 0.265s)
## COMMAND: /opt/android/android-sdk-mac/platform-tools/adb -s DellVenue7000165032 shell chmod 0755 /data/local/tmp/ndk-tests/libcrystax.so
## COMMAND: /opt/android/android-sdk-mac/platform-tools/adb -s DellVenue7000165032 push /Volumes/android/ndk/out/tests/gcc4.9/build/test-wait/libs/x86/test_wait-dynamic /data/local/tmp/ndk-tests/test_wait-dynamic
1356 KB/s (5316 bytes in 0.003s)
## COMMAND: /opt/android/android-sdk-mac/platform-tools/adb -s DellVenue7000165032 shell chmod 0755 /data/local/tmp/ndk-tests/test_wait-dynamic
Running device test [x86]: test-wait (test_wait-dynamic)
/opt/android/android-sdk-mac/platform-tools/adb -s "DellVenue7000165032" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./test_wait-dynamic"
Testing for API level 9
Testing wait(): Parent waiting for child with pid=26082
Testing wait(): Child created pid=26082 parent_pid=26081
Testing wait(): OK
Testing waitpid(): Parent waiting for child with pid=26083
Testing waitpid(): Child created pid=26083 parent_pid=26081
Testing waitpid(): OK
Testing wait3(): Parent waiting for child with pid=26084
Testing wait3(): Child created pid=26084 parent_pid=26081
Testing wait3(): OK
Testing wait4(): Parent waiting for child with pid=26085
Testing wait4(): Child created pid=26085 parent_pid=26081
Testing wait4(): OK
0
/opt/android/android-sdk-mac/platform-tools/adb -s "DellVenue7000165032" shell "rm /data/local/tmp/ndk-tests/test_wait-dynamic"
0
## COMMAND: /opt/android/android-sdk-mac/platform-tools/adb -s DellVenue7000165032 push /Volumes/android/ndk/out/tests/gcc4.9/build/test-wait/libs/x86/test_wait-static /data/local/tmp/ndk-tests/test_wait-static
2298 KB/s (302148 bytes in 0.128s)
## COMMAND: /opt/android/android-sdk-mac/platform-tools/adb -s DellVenue7000165032 shell chmod 0755 /data/local/tmp/ndk-tests/test_wait-static
Running device test [x86]: test-wait (test_wait-static)
/opt/android/android-sdk-mac/platform-tools/adb -s "DellVenue7000165032" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./test_wait-static"
Testing for API level 9
Testing wait(): Parent waiting for child with pid=26095
Testing wait(): Child created pid=26095 parent_pid=26094
Testing wait(): OK
Testing waitpid(): Parent waiting for child with pid=26096
Testing waitpid(): Child created pid=26096 parent_pid=26094
Testing waitpid(): OK
Testing wait3(): Parent waiting for child with pid=26097
Testing wait3(): Child created pid=26097 parent_pid=26094
Testing wait3(): OK
Testing wait4(): Parent waiting for child with pid=26098
Testing wait4(): Child created pid=26098 parent_pid=26094
ERROR: wait4() returned -1074995948, expected 26098
1
---> TEST FAILED!!
Actions