ATF-log archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

#41: implement ATF_REQUIRE_ERRNO



#41: implement ATF_REQUIRE_ERRNO
--------------------------+-------------------------------------------------
 Reporter:  pooka@...     |       Owner:  jmmv
     Type:  enhancement   |      Status:  new 
 Priority:  minor         |   Milestone:      
Component:  MISC          |     Version:      
 Keywords:                |  
--------------------------+-------------------------------------------------
 Most of the lines in tests against system functionality are:

 if (syscall(args) == -1)
     atf_tc_fail_errno("flop")

 Some shorthand would be helpful, like

 ATF_REQUIRE_ERRNO(syscall(args))

 Also, a variant which allows arbitrary return value checks
 (e.g. "!= 0" or "< 124" or "!= size") would be nice.

-- 
Ticket URL: <http://www.julipedia.org/projects/atf/trac/ticket/41>
Automated Testing Framework <http://www.NetBSD.org/~jmmv/atf/>
Automated Testing Framework


Home | Main Index | Thread Index | Old Index