NetBSD-Bugs archive

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

Re: bin/51806: [PATCH] tests/lib/libc/gen/t_vis.c: only run strvis_locale test cases if VIS_NOLOCALE is defined



The following reply was made to PR bin/51806; it has been noted by GNATS.

From: Ngie Cooper (yaneurabeya) <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51806: [PATCH] tests/lib/libc/gen/t_vis.c: only run
 strvis_locale test cases if VIS_NOLOCALE is defined
Date: Tue, 10 Jan 2017 01:10:27 -0800

 --Apple-Mail=_6B8926F1-A808-49D2-A30B-901E4FACC291
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Patch attached.
 
 --Apple-Mail=_6B8926F1-A808-49D2-A30B-901E4FACC291
 Content-Disposition: attachment;
 	filename*0=only-run-strvis_locale-testcases-if-VIS_NOLOCALE-is-defined.patc;
 	filename*1=h
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="only-run-strvis_locale-testcases-if-VIS_NOLOCALE-is-defined.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: t_vis.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/gen/t_vis.c,v
 retrieving revision 1.8
 diff -u -r1.8 t_vis.c
 --- t_vis.c	23 May 2015 14:02:11 -0000	1.8
 +++ t_vis.c	10 Jan 2017 08:58:05 -0000
 @@ -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();
  }
 
 --Apple-Mail=_6B8926F1-A808-49D2-A30B-901E4FACC291--
 


Home | Main Index | Thread Index | Old Index