chyyuu / ucore_os_plus

232 stars 132 forks source link

9 thread related tests hang #9

Closed eternalNight closed 12 years ago

eternalNight commented 12 years ago

Description

The thread related unit tests, including buggy_event, buggy_wait, pipetest2, spipetest2, threadfork, threadgroup1, threadgroup2, threadtest and threadwork, all hang for at least 10 seconds.

Commit

d5272dc unittest: Remove tests containing i386 specific constraints for arm.

Reproduce Steps

cd ucore make ARCH=arm BOARD=goldfishv7 menuconfig (disable DDE here) UCORE_TEST=/testbin/threadfork make sfsimg UCORE_TEST=/testbin/threadfork make kernel ./uCore_test -t 60 -sf src/user-ucore/testspecs/threadfork.testspec

Current Result

The test times out.

Expected Result

Each test involved finishs in 10 seconds and passes.

chyh1990 commented 12 years ago

thread support is not implemented in libs-user-ucore. (clone.S in libs-user-ucore/arch/arm is a dead loop) We use pthread library in bionic or ulibc

eternalNight commented 12 years ago

I see. I'll disable these tests on arm.