Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Unit Tests on iPhone
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-05-08 04:25:01

Manfred Schwind <lists <at>> writes:

> Hi,
> I successfully built the boost libraries for the iPhone and for the
> iPhone Simulator. Now I have done some work on cross plattform C++
> code and I am testing this code with Boost Unit Tests. It's running
> fine on Mac and Windows. It's also running fine on the iPhone
> Simulator. But unfortunately it's not working on the iPhone Device.
> It's not even getting into my test code, it just "hangs" somewhere
> before when collecting the test cases, if I can see this right in the
> debugger.

Would you care to post stack trace?
> I experienced that if I just have one BOOST_AUTO_TEST_CASE it also
> works fine on the iPhone Device. The test case executes, it succeeds
> and the app quits. But as soon as I have two or more
> BOOST_AUTO_TEST_CASEs, none of these test cases gets executed and the
> iPhone just hangs forever and loops around in some boost unit test
> initialization code using "spinlocks" and "yields" ...

What if you register test cases manually? Is there anything special about static
variables construction in this configuration?
> Is this a known issue? Anyone successfully using Boost Unit Tests on
> iPhone? Any ideas what I could try?

I definitely never tested in this setup ;o) Asides from notes above: what
variant of UTF are you using? can you try another one?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at