Module Name: src
Committed By: christos
Date: Mon Dec 6 16:37:25 UTC 2010
Modified Files:
src/tests/kernel: t_rnd.c
Log Message:
adjust errno after kernel change to be EINVAL
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/kernel/t_rnd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/kernel/t_rnd.c
diff -u src/tests/kernel/t_rnd.c:1.3 src/tests/kernel/t_rnd.c:1.4
--- src/tests/kernel/t_rnd.c:1.3 Sat Dec 4 12:41:18 2010
+++ src/tests/kernel/t_rnd.c Mon Dec 6 11:37:25 2010
@@ -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)