From 636109156367a366a90379168c018b5d01faa764 Mon Sep 17 00:00:00 2001 From: is Date: Thu, 18 Feb 1999 10:37:26 +0000 Subject: [PATCH] The expected output strings are C locale error strings. We unsetenv("LANG") so that this test works even when LANG was set. --- regress/sys/kern/execve/doexec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/regress/sys/kern/execve/doexec.c b/regress/sys/kern/execve/doexec.c index 6ea31d5a6360..ac350de7d02f 100644 --- a/regress/sys/kern/execve/doexec.c +++ b/regress/sys/kern/execve/doexec.c @@ -1,4 +1,4 @@ -/* $NetBSD: doexec.c,v 1.3 1995/04/20 22:43:13 cgd Exp $ */ +/* $NetBSD: doexec.c,v 1.4 1999/02/18 10:37:26 is Exp $ */ /* * Copyright (c) 1993 Christopher G. Demetriou @@ -32,6 +32,7 @@ #include #include +#include #include #include @@ -45,6 +46,7 @@ main(argc, argv) exit(2); } + unsetenv("LANG"); /* we compare C error strings */ if (execve(argv[1], &argv[1], NULL) == -1) { printf("%s\n", strerror(errno)); exit(1);