Re: CVS commit: src/tests/lib/libc/sys

2013-03-09 Thread David Laight
On Sat, Mar 09, 2013 at 12:19:08AM +0100, Martin Husemann wrote:
 On Fri, Mar 08, 2013 at 11:03:23PM +, 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: da...@l8s.co.uk


Re: CVS commit: src/sys/arch/arm/arm

2013-03-09 Thread David Laight
On Sat, Mar 09, 2013 at 10:10:45AM +, Michael van Elst wrote:
 Module Name:  src
 Committed By: mlelstv
 Date: Sat Mar  9 10:10:45 UTC 2013
 
 Modified Files:
   src/sys/arch/arm/arm: disksubr_acorn.c
 
 Log Message:
 Errors are supposed to be negative errno numbers, not -1 which is interpreted
 as EPERM.

Hmmm... NetBSD usually uses +ve errno values.

David

-- 
David Laight: da...@l8s.co.uk