Source-Changes-HG archive

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

[src/trunk]: src/tests/kernel adjust errno after kernel change to be EINVAL



details:   https://anonhg.NetBSD.org/src/rev/9891dbd45e8c
branches:  trunk
changeset: 759351:9891dbd45e8c
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 06 16:37:25 2010 +0000

description:
adjust errno after kernel change to be EINVAL

diffstat:

 tests/kernel/t_rnd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6d28797ffdf6 -r 9891dbd45e8c tests/kernel/t_rnd.c
--- a/tests/kernel/t_rnd.c      Mon Dec 06 16:22:57 2010 +0000
+++ b/tests/kernel/t_rnd.c      Mon Dec 06 16:37:25 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_rnd.c,v 1.3 2010/12/04 17:41:18 pooka Exp $  */
+/*     $NetBSD: t_rnd.c,v 1.4 2010/12/06 16:37:25 christos Exp $       */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_rnd.c,v 1.3 2010/12/04 17:41:18 pooka Exp $");
+__RCSID("$NetBSD: t_rnd.c,v 1.4 2010/12/06 16:37:25 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/fcntl.h>
@@ -82,7 +82,7 @@
                
        rd.entropy = 1;
        rd.len = -1;
-       ATF_REQUIRE_ERRNO(E2BIG, rump_sys_ioctl(fd, RNDADDDATA, &rd) == -1);
+       ATF_REQUIRE_ERRNO(EINVAL, rump_sys_ioctl(fd, RNDADDDATA, &rd) == -1);
 }
 
 ATF_TP_ADD_TCS(tp)



Home | Main Index | Thread Index | Old Index