Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/vfs Check that rename(2) with NULL arguments fail w...
details: https://anonhg.NetBSD.org/src/rev/d6fad0cd98b8
branches: trunk
changeset: 788907:d6fad0cd98b8
user: njoly <njoly%NetBSD.org@localhost>
date: Sun Jul 28 09:03:43 2013 +0000
description:
Check that rename(2) with NULL arguments fail with EFAULT.
diffstat:
tests/fs/vfs/t_vnops.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 544f9bc128fd -r d6fad0cd98b8 tests/fs/vfs/t_vnops.c
--- a/tests/fs/vfs/t_vnops.c Sun Jul 28 08:50:09 2013 +0000
+++ b/tests/fs/vfs/t_vnops.c Sun Jul 28 09:03:43 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_vnops.c,v 1.36 2013/07/10 18:55:00 reinoud Exp $ */
+/* $NetBSD: t_vnops.c,v 1.37 2013/07/28 09:03:43 njoly Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -400,6 +400,9 @@
ATF_REQUIRE_EQ(sb.st_nlink, 1);
}
+ ATF_CHECK_ERRNO(EFAULT, rump_sys_rename("file2", NULL) == -1);
+ ATF_CHECK_ERRNO(EFAULT, rump_sys_rename(NULL, "file2") == -1);
+
rump_sys_chdir("/");
}
Home |
Main Index |
Thread Index |
Old Index