aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-25 19:41:14 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-25 19:41:14 -0500
commit173c328f23f5c8b3519068f731a6db35488bbd25 (patch)
tree292fff282cbbdf05199b1f703421e396fdd3e3b7
parent374341e3169b1741ce8c9404d096c620c4c15c92 (diff)
Add tests for invalid object types and od_open().
-rw-r--r--tests/fdso.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/fdso.c b/tests/fdso.c
index fb8a5bd..c95a578 100644
--- a/tests/fdso.c
+++ b/tests/fdso.c
@@ -43,6 +43,13 @@ TESTCASE(invalid_od, ALL,
43 SYSCALL_FAILS( EINVAL, od_close(-1) ); 43 SYSCALL_FAILS( EINVAL, od_close(-1) );
44} 44}
45 45
46TESTCASE(invalid_obj_type, ALL,
47 "reject invalid object types")
48{
49 SYSCALL_FAILS( EINVAL, od_open(0, -1, 0) );
50 SYSCALL_FAILS( EINVAL, od_open(0, 10, 0) );
51}
52
46TESTCASE(not_inherit_od, GSN_EDF | PSN_EDF, 53TESTCASE(not_inherit_od, GSN_EDF | PSN_EDF,
47 "don't inherit FDSO handles across fork") 54 "don't inherit FDSO handles across fork")
48{ 55{