From 173c328f23f5c8b3519068f731a6db35488bbd25 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Thu, 25 Feb 2010 19:41:14 -0500 Subject: Add tests for invalid object types and od_open(). --- tests/fdso.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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, SYSCALL_FAILS( EINVAL, od_close(-1) ); } +TESTCASE(invalid_obj_type, ALL, + "reject invalid object types") +{ + SYSCALL_FAILS( EINVAL, od_open(0, -1, 0) ); + SYSCALL_FAILS( EINVAL, od_open(0, 10, 0) ); +} + TESTCASE(not_inherit_od, GSN_EDF | PSN_EDF, "don't inherit FDSO handles across fork") { -- cgit v1.2.2