Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/gen PR/51806: Ngie Cooper: Only run the vis l...



details:   https://anonhg.NetBSD.org/src/rev/2eb3d1fcffe4
branches:  trunk
changeset: 820473:2eb3d1fcffe4
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 10 15:16:57 2017 +0000

description:
PR/51806: Ngie Cooper: Only run the vis locale test if VIS_NOLOCALE is defined

diffstat:

 tests/lib/libc/gen/t_vis.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 628ed686c97d -r 2eb3d1fcffe4 tests/lib/libc/gen/t_vis.c
--- a/tests/lib/libc/gen/t_vis.c        Tue Jan 10 15:15:09 2017 +0000
+++ b/tests/lib/libc/gen/t_vis.c        Tue Jan 10 15:16:57 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_vis.c,v 1.8 2015/05/23 14:02:11 christos Exp $       */
+/*     $NetBSD: t_vis.c,v 1.9 2017/01/10 15:16:57 christos Exp $       */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -144,6 +144,7 @@
        }
 }
 
+#ifdef VIS_NOLOCALE
 ATF_TC(strvis_locale);
 ATF_TC_HEAD(strvis_locale, tc)
 {
@@ -172,6 +173,7 @@
        setlocale(LC_CTYPE, ol);
        free(ol);
 }
+#endif /* VIS_NOLOCALE */
 
 ATF_TP_ADD_TCS(tp)
 {
@@ -180,7 +182,9 @@
        ATF_TP_ADD_TC(tp, strvis_null);
        ATF_TP_ADD_TC(tp, strvis_empty);
        ATF_TP_ADD_TC(tp, strunvis_hex);
+#ifdef VIS_NOLOCALE
        ATF_TP_ADD_TC(tp, strvis_locale);
+#endif /* VIS_NOLOCALE */
 
        return atf_no_error();
 }



Home | Main Index | Thread Index | Old Index