summaryrefslogtreecommitdiff
path: root/tests/test-nl_langinfo-mt.c
Commit message (Collapse)AuthorAgeFilesLines
* maint: run 'make update-copyright'Simon Josefsson2023-01-011-1/+1
|
* license: fix GPLv3 texts to use a comma instead of semicolon.Bernhard Voelker2022-01-051-1/+1
| | | | | | | | | See: https://www.gnu.org/licenses/gpl-3.0.html#howto Run: $ git grep -l 'Foundation; either version 3' \ | xargs sed -i '/Foundation; either version 3/ s/n; e/n, e/' * All files using GPLv3: Adjust via the above command.
* maint: run 'make update-copyright'Paul Eggert2022-01-011-1/+1
|
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* nl_langinfo-tests: work around GCC bug 44511Paul Eggert2020-11-211-0/+5
| | | | | | | * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>. Problem reported for GNU grep by Andreas Schwab <https://bugs.gnu.org/44535>.
* tests: pacify Sun C 5.9Paul Eggert2020-11-041-7/+0
| | | | | | | | | | Without these changes, Sun C 5.9 (2009/11/22) issues complaints like “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”. * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func) (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func): * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func): * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func): Remove unreachable ‘return NULL;’s.
* tests: skip thread-using tests when threading is disabledJim Meyering2020-01-051-0/+17
| | | | | | | | | sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each of those, so they are skipped in this case. * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled. * tests/test-setlocale_null-mt-all.c (main): Likewise. * tests/test-setlocale_null-mt-one.c (main): Likewise.
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* nl_langinfo: Fix multithread-safety bug on mingw and MSVC.Bruno Haible2019-12-171-0/+238
* lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a stack-allocated buffer to assemble each result and different static buffers to return it. * tests/test-nl_langinfo-mt.c: New file. * modules/nl_langinfo-tests (Files): Add it. (Depends-on): Add thread, nanosleep. (Makefile.am): Build test-nl_langinfo-mt test.