[LTP] [COMMITTED] [PATCH] openposix: strftime_1-1: Set LC_TIME to C

Cyril Hrubis chrubis@suse.cz
Tue Feb 7 13:02:33 CET 2017


The test fails with anything else than english ISO locale so we
explicitly set LC_TIME to C before the test.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/open_posix_testsuite/conformance/interfaces/strftime/1-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/open_posix_testsuite/conformance/interfaces/strftime/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/strftime/1-1.c
index 25c9f62..4350edb 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/strftime/1-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/strftime/1-1.c
@@ -26,7 +26,7 @@ int main(void)
 	char text[256];
 	int result;
 
-	setlocale(LC_TIME, "");
+	setlocale(LC_TIME, "C");
 	strftime(text, sizeof(text), nl_langinfo(D_T_FMT), local_t);
 	printf("STRING IS:   %s\n\n", text);
 
-- 
2.10.2



More information about the ltp mailing list