summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2016-09-08 05:37:36 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2016-09-08 05:37:36 +0000
commitd270e24bf7e011e34fc0bc3965f9d26d00cbce57 (patch)
tree6a0e4fea314b57555b685d6924d32b88670bf7cd /regress/lib
parentf55c2fa9a1f04f44a105cfd5f4854f615fee187d (diff)
fix test after the errno reshuffle; ok swarsche@
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libedit/read/test_getcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libedit/read/test_getcmd.c b/regress/lib/libedit/read/test_getcmd.c
index 1cc47fc194c..8341b1d6578 100644
--- a/regress/lib/libedit/read/test_getcmd.c
+++ b/regress/lib/libedit/read/test_getcmd.c
@@ -42,7 +42,6 @@ main()
if (setlocale(LC_CTYPE, "") == NULL)
err(1, "setlocale");
- el.el_read->read_errno = ENOMSG;
el.el_flags = CHARSET_IS_UTF8;
el.el_infd = STDIN_FILENO;
el.el_state.metanext = 0;
@@ -60,6 +59,7 @@ main()
if (read_init(&el) != 0)
err(1, "read_init");
ma = &el.el_read->macros;
+ el.el_read->read_errno = ENOMSG;
do {
irc = read_getcmd(&el, &cmdnum, &ch);
@@ -86,7 +86,7 @@ main()
printf("ret(%d)", irc);
break;
}
- if (el.el_read->read_errno != 0)
+ if (el.el_read->read_errno != ENOMSG)
printf(" read_errno=%d", el.el_read->read_errno);
if (ma->level > -1)
printf(" macro[%d]=%ls(%d)", ma->level,