Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/tests/lib/libc/sys
On Sat, Mar 09, 2013 at 12:19:08AM +0100, Martin Husemann wrote:
> On Fri, Mar 08, 2013 at 11:03:23PM +0000, David Laight wrote:
> > Should the 'no timeout' case (try to) check that the elapsed time is
> > less than one tick?
>
> I gave the (partly virtual) test platforms a bit more slope and made it < 1s
> instead of 1 tick, but otherwise: yes.
If the test did:
poll(0, 0, 1);
gettimeofday();
run_test();
gettimeofday();
It should be able to distinguish between the 'no sleep' and 'sleep
for one tick' cases.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index