summaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2015-05-07 06:23:23 +0000
committerpgoyette <pgoyette@NetBSD.org>2015-05-07 06:23:23 +0000
commit3ca35c321f1fc4cecc7787534d34e694c36e0294 (patch)
tree911a6cce07fc50cd35625328ca718e02a5ddc350 /tests/include
parentf58a5dfc425770e446eb3816bdbce7574159bf62 (diff)
Use correcet variable name when printing the error code.
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/t_paths.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/include/t_paths.c b/tests/include/t_paths.c
index bff952eeb27..52a150e84bc 100644
--- a/tests/include/t_paths.c
+++ b/tests/include/t_paths.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_paths.c,v 1.15 2015/05/07 01:35:35 pgoyette Exp $ */
+/* $NetBSD: t_paths.c,v 1.16 2015/05/07 06:23:23 pgoyette Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_paths.c,v 1.15 2015/05/07 01:35:35 pgoyette Exp $");
+__RCSID("$NetBSD: t_paths.c,v 1.16 2015/05/07 06:23:23 pgoyette Exp $");
#include <sys/param.h>
#include <sys/stat.h>
@@ -160,7 +160,7 @@ ATF_TC_BODY(paths, tc)
atf_tc_fail("UID %u failed to open %s, "
"error %d", (uint32_t)uid,
- paths[i].path, error);
+ paths[i].path, errno);
}
case EBUSY: /* FALLTHROUGH */