Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libi386 A kernel without USER_LDT returns ENOSYS, ...



details:   https://anonhg.NetBSD.org/src/rev/a6b53bddcc3f
branches:  trunk
changeset: 932495:a6b53bddcc3f
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat May 09 09:08:41 2020 +0000

description:
A kernel without USER_LDT returns ENOSYS, not ENOTSUP.

diffstat:

 tests/lib/libi386/t_user_ldt.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fa7303e23809 -r a6b53bddcc3f tests/lib/libi386/t_user_ldt.c
--- a/tests/lib/libi386/t_user_ldt.c    Sat May 09 08:39:07 2020 +0000
+++ b/tests/lib/libi386/t_user_ldt.c    Sat May 09 09:08:41 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_user_ldt.c,v 1.2 2020/04/26 12:13:10 maxv Exp $      */
+/*     $NetBSD: t_user_ldt.c,v 1.3 2020/05/09 09:08:41 maxv Exp $      */
 
 /*
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
        int ret;
 
        ret = i386_get_ldt(0, &desc, 1);
-       user_ldt_supported = (ret != -1) || (errno != ENOTSUP);
+       user_ldt_supported = (ret != -1) || (errno != ENOSYS);
 }
 
 static void



Home | Main Index | Thread Index | Old Index