[llvm-commits] [patch] Fix some tests when --disable-threads is used

Duncan Sands baldrick at free.fr
Thu Mar 3 07:19:08 PST 2011


Hi Dimitry,

> If you configure llvm with --disable-threads, the following tests will
> always fail:
>
> LLVM-Unit :: VMCore/Release+Asserts/VMCoreTests/ValueMapTest/0.LocksMutex
> LLVM-Unit :: VMCore/Release+Asserts/VMCoreTests/ValueMapTest/1.LocksMutex
> LLVM-Unit :: VMCore/Release+Asserts/VMCoreTests/ValueMapTest/2.LocksMutex
>
> This is because the tests attempt to acquire a mutex, and expect it to
> fail, but all mutex functions simply return true when --disable-threads
> is used.

why not change the mutexes to return false, i.e. success?

Ciao, Duncan.



More information about the llvm-commits mailing list