summaryrefslogtreecommitdiffstats
path: root/tests/sys
diff options
context:
space:
mode:
authorpho <pho@FreeBSD.org>2014-03-04 10:47:35 +0000
committerpho <pho@FreeBSD.org>2014-03-04 10:47:35 +0000
commit21bd06b2f050e87be77428e6c1c008c9225c4808 (patch)
tree755d2963c3211f51e0c98d6c3d9fa197236ae744 /tests/sys
parentab19606c679e4f746becea71a35409a662e6147c (diff)
downloadFreeBSD-src-21bd06b2f050e87be77428e6c1c008c9225c4808.zip
FreeBSD-src-21bd06b2f050e87be77428e6c1c008c9225c4808.tar.gz
Changed name of test case to a more descriptive one and moved
comment to the "descr" property. Suggested by: jmmv Sponsored by: EMC / Isilon storage division
Diffstat (limited to 'tests/sys')
-rw-r--r--tests/sys/kern/kern_descrip_test.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/sys/kern/kern_descrip_test.c b/tests/sys/kern/kern_descrip_test.c
index 70071fb..59a8163 100644
--- a/tests/sys/kern/kern_descrip_test.c
+++ b/tests/sys/kern/kern_descrip_test.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2013 EMC Corp.
+ * Copyright (c) 2014 EMC Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -52,14 +52,12 @@ ATF_TC_BODY(dup2_simple, tc)
ATF_REQUIRE(bcmp(&sb1, &sb2, sizeof(sb1)) == 0);
}
-/*
- Regression test for r234131:
- Return EBADF instead of EMFILE from dup2 when the second argument is
- outside the range of valid file descriptors
- */
-
-ATF_TC_WITHOUT_HEAD(dup2_r234131);
-ATF_TC_BODY(dup2_r234131, tc)
+ATF_TC(dup2__ebadf_when_2nd_arg_out_of_range);
+ATF_TC_HEAD(dup2__ebadf_when_2nd_arg_out_of_range, tc)
+{
+ atf_tc_set_md_var(tc, "descr", "Regression test for r234131");
+}
+ATF_TC_BODY(dup2__ebadf_when_2nd_arg_out_of_range, tc)
{
int fd1, fd2, ret;
@@ -74,7 +72,7 @@ ATF_TP_ADD_TCS(tp)
{
ATF_TP_ADD_TC(tp, dup2_simple);
- ATF_TP_ADD_TC(tp, dup2_r234131);
+ ATF_TP_ADD_TC(tp, dup2__ebadf_when_2nd_arg_out_of_range);
return atf_no_error();
}
OpenPOWER on IntegriCloud