Home
last modified time | relevance | path

Searched refs:expected_errno (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/netbsd-tests/fs/vfs/
H A Dt_rwtoro.c58 remount_ro(const atf_tc_t *tc, const char *mp, int expected_errno) in remount_ro() argument
86 if (expected_errno == 0) in remount_ro()
89 ATF_CHECK_ERRNO(expected_errno, error == -1); in remount_ro()
129 basic_test(const atf_tc_t *tc, const char *mp, int expected_errno, in basic_test() argument
144 remount_ro(tc, mp, expected_errno); in basic_test()
/freebsd/tests/sys/fs/fusefs/
H A Dbad_server.cc51 out.expected_errno = EINVAL; in TEST_F()
66 out.expected_errno = EINVAL; in TEST_F()
90 out0->expected_errno = EINVAL; in TEST_F()
H A Dmockfs.hh239 int expected_errno; member
404 int expected_errno = 0);
H A Dmockfs.cc853 int expected_errno) in notify_inval_entry() argument
857 out->expected_errno = expected_errno; in notify_inval_entry()
1066 if (out.expected_errno) { in write_response()
1068 ASSERT_EQ(out.expected_errno, errno) << strerror(errno); in write_response()
H A Dlookup.cc293 out.expected_errno = EINVAL; in TEST_F()
/freebsd/contrib/atf/atf-c++/
H A Dmacros.hpp191 #define ATF_CHECK_ERRNO(expected_errno, bool_expr) \ argument
192 atf::tests::tc::check_errno(__FILE__, __LINE__, expected_errno, \
195 #define ATF_REQUIRE_ERRNO(expected_errno, bool_expr) \ argument
196 atf::tests::tc::require_errno(__FILE__, __LINE__, expected_errno, \
/freebsd/tools/regression/security/cap_test/
H A Dcap_test.h74 #define CHECK_SYSCALL_FAILS(expected_errno, syscall, ...) do { \ argument
76 if (errno != expected_errno) \
/freebsd/tools/regression/priv/
H A Dpriv_vfs_read_write.c61 int flags, int expected_error, int expected_errno) in try_io() argument
70 : "!jail", expected_error, expected_errno, errno); in try_io()
75 "!jail", expected_error, expected_errno); in try_io()
H A Dmain.c365 expect(const char *test, int error, int expected_error, int expected_errno) in expect() argument
377 } else if (expected_errno != errno) { in expect()
H A Dmain.h52 int expected_errno);
/freebsd/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c157 int mode, int expected_errno) in try_directory_open() argument
163 if (expected_errno) in try_directory_open()
169 if (expected_errno && expected_errno == errno) in try_directory_open()
171 else if (expected_errno != 0) in try_directory_open()
182 int expected_errno, i, mode; in check_directory_open_modes() local
191 expected_errno = 0; in check_directory_open_modes()
193 expected_errno = EISDIR; in check_directory_open_modes()
195 expected_errno); in check_directory_open_modes()