diff options
| author | Peter Jones <pjones@redhat.com> | 2021-03-09 11:56:31 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-10 15:54:20 -0500 |
| commit | bbdfa72a0a5f8d5a8dd4a47e67195504a22ece5b (patch) | |
| tree | df55ee07b51932f866a25967b18536dc29321073 /include/system/string.h | |
| parent | 9beca885c29c77bb901547321a5ce6fd3c9c8ee3 (diff) | |
| download | efi-boot-shim-bbdfa72a0a5f8d5a8dd4a47e67195504a22ece5b.tar.gz efi-boot-shim-bbdfa72a0a5f8d5a8dd4a47e67195504a22ece5b.zip | |
Add some test cases, and make "make test" actually work.
Note the one test case I'm not 100% sure about. Someone let me know.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include/system/string.h')
| -rw-r--r-- | include/system/string.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/system/string.h b/include/system/string.h index 822e28fa..66e7d93e 100644 --- a/include/system/string.h +++ b/include/system/string.h @@ -1,6 +1,23 @@ // SPDX-License-Identifier: BSD-2-Clause-Patent #ifdef SHIM_UNIT_TEST #include_next <string.h> + +__typeof__(strlen) shim_strlen; +__typeof__(strcmp) shim_strcmp; +__typeof__(strncmp) shim_strncmp; +__typeof__(strncasecmp) shim_strncasecmp; +__typeof__(strcasecmp) shim_strcasecmp; +__typeof__(strrchr) shim_strrchr; +__typeof__(strrchr) shim_strrchr; +__typeof__(strnlen) shim_strnlen; +__typeof__(strcpy) shim_strcpy; +__typeof__(strncpy) shim_strncpy; +__typeof__(strdup) shim_strdup; +__typeof__(strndup) shim_strndup; +__typeof__(stpcpy) shim_stpcpy; +__typeof__(strchrnul) shim_strchrnul; +__typeof__(strchr) shim_strchr; + #else #ifndef _STRING_H #define _STRING_H |
