Module Name:    src
Committed By:   bouyer
Date:           Sat Feb 12 18:13:46 UTC 2011

Modified Files:
        src/tests/fs/common: snapshot.c

Log Message:
Test the right fd after rump_sys_open().


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/fs/common/snapshot.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/fs/common/snapshot.c
diff -u src/tests/fs/common/snapshot.c:1.5 src/tests/fs/common/snapshot.c:1.6
--- src/tests/fs/common/snapshot.c:1.5	Sun Nov  7 17:51:17 2010
+++ src/tests/fs/common/snapshot.c	Sat Feb 12 18:13:46 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: snapshot.c,v 1.5 2010/11/07 17:51:17 jmmv Exp $	*/
+/*	$NetBSD: snapshot.c,v 1.6 2011/02/12 18:13:46 bouyer Exp $	*/
 
 #include <sys/types.h>
 #include <sys/ioctl.h>
@@ -65,7 +65,7 @@
 		atf_tc_fail_errno("write fail");
 
 	fssfd = rump_sys_open("/dev/rfss0", O_RDWR);
-	if (fd == -1)
+	if (fssfd == -1)
 		atf_tc_fail_errno("cannot open fss");
 	makefile(BAKNAME);
 	memset(&fss, 0, sizeof(fss));

Reply via email to