[patch] fix thread test cases for solaris.

Chris Fairles chris.fairles@gmail.com
Sun Jan 11 13:15:00 GMT 2009

> I would ask you to figure out a way to have a single large test,
> starting from the existing one for clock-gettime, renamed. Inside, link
> tests for each of the three facilities, not run by default, etc, exactly the
> same we do for clock-gettime.

Ok. Will do. In the meantime, any ideas what we should call this
(disabled by default) --enable option?
--enable-cxx0x-thread[={rt,yes,no}] or
--enable-libstdcxx-librt[={yes,no}] i think would also work...

Hm, looking into this a bit, we currently have this:

        ::nanosleep(&__ts, 0);

inside the thread::sleep_* calls, but we should disable the functions
altogther should we not?

        ... ::nanosleep(...);

Then wrap the testcases in a similar manner, or better yet, make
dg-requires thingies for nanosleep and sched_yield). Actually, there
already is a dg-requires for nanosleep, but its based on a compile
only test so making it a link test will fix that, i just have to add
another for sched_yield.


More information about the Libstdc++ mailing list