Unset ESCDELAY in libcurses test director to ensure consistent results

Non-default values of ESCDELAY may result in unexpected test failures.
This commit is contained in:
mcf 2021-06-10 07:21:07 +00:00
parent 21db06c179
commit 013e6195ab
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: director.c,v 1.28 2021/02/13 09:18:12 rillig Exp $ */
/* $NetBSD: director.c,v 1.29 2021/06/10 07:21:07 mcf Exp $ */
/*-
* Copyright 2009 Brett Lymn <blymn@NetBSD.org>
@ -195,6 +195,9 @@ main(int argc, char *argv[])
if (setenv("TERM", term, 1) != 0)
err(2, "Failed to set TERM variable");
if (unsetenv("ESCDELAY") != 0)
err(2, "Failed to unset ESCDELAY variable");
if (stat(termpath, &st) == -1)
err(1, "Cannot stat %s", termpath);