Testing PolicyKit

David Zeuthen david at fubar.dk
Mon Jan 7 10:24:30 PST 2008


On Mon, 2008-01-07 at 13:22 -0500, Joe Marcus Clarke wrote:
> | Maybe _kit_get_num_fd() should return a ssize_t and -1 if the feature is
> | not available. Though, I'd be surprised if FreeBSD didn't have this
> | feature...
> 
> FreeBSD does but it's not as trivial as reading from a text file in
> /proc.  Analysis of kernel structures is needed.
> 
> |
> | I think it's pretty important to get the test suite to run; it covers a
> | bunch of corner cases..
> 
> I guess since it's only for the test suite, 

Right, it's not a public symbolc (well, public in the sense that it's
exported by libkit.a).

> I could just spawn fstat on
> FreeBSD, and count the lines...

Yeah, or just change it to return -1; that'll work too (it's only used
to check that no fd's are left open after a test case). Thanks.

       David




More information about the hal mailing list