diff options
| author | Florian Weimer <fweimer@redhat.com> | 2024-06-27 16:26:56 +0200 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2024-08-01 09:08:32 +0200 |
| commit | 54252394c25ddf0062e288d4a6ab7a885f8ae009 (patch) | |
| tree | 24f31c3d03a06f9f6ae0635dbaa0d80dda178eb5 /wcsmbs | |
| parent | 783d4c0b81889c39a9ddf13b60d0fde4040fb1c0 (diff) | |
| download | glibc-54252394c25ddf0062e288d4a6ab7a885f8ae009.tar.xz glibc-54252394c25ddf0062e288d4a6ab7a885f8ae009.zip | |
Enhanced test coverage for strncmp, wcsncmp
Add string/test-strncmp-nonarray and
wcsmbs/test-wcsncmp-nonarray.
This is the test that uncovered bug 31934. Test run time
is more than one minute on a fairly current system, so turn
these into xtests that do not run automatically.
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
Diffstat (limited to 'wcsmbs')
| -rw-r--r-- | wcsmbs/Makefile | 4 | ||||
| -rw-r--r-- | wcsmbs/test-wcsncmp-nonarray.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile index c51c9b4f1f..63adf0e8ef 100644 --- a/wcsmbs/Makefile +++ b/wcsmbs/Makefile @@ -206,6 +206,10 @@ tests := \ wcsmbs-tst1 \ # tests +# This test runs for a long time. +xtests += test-wcsncmp-nonarray + + include ../Rules ifeq ($(run-built-tests),yes) diff --git a/wcsmbs/test-wcsncmp-nonarray.c b/wcsmbs/test-wcsncmp-nonarray.c new file mode 100644 index 0000000000..1ad9ebd8fd --- /dev/null +++ b/wcsmbs/test-wcsncmp-nonarray.c @@ -0,0 +1,5 @@ +#include <wchar.h> +#define TEST_IDENTIFIER wcsncmp +#define TEST_NAME "wcsncmp" +typedef wchar_t CHAR; +#include "../string/test-Xncmp-nonarray.c" |
