aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t-strerror.c
diff options
context:
space:
mode:
authorpengyi <[email protected]>2022-12-07 20:59:25 +0000
committerNIIBE Yutaka <[email protected]>2022-12-13 03:08:05 +0000
commit72e0fb3fc858301de7b200e1c08da6904ab44bc0 (patch)
tree81352eb224d123f56d25c069c5f7a6283fa30ad8 /tests/t-strerror.c
parentHandle strerror_r failure on non-GNU systems. (diff)
downloadlibgpg-error-72e0fb3fc858301de7b200e1c08da6904ab44bc0.tar.gz
libgpg-error-72e0fb3fc858301de7b200e1c08da6904ab44bc0.zip
Add more tests for t-printf and t-strerror.
* tests/t-printf.c (check_fwrite): New. (main): Add check_fwrite. * tests/t-strerror.c (main): Add three more cases to LIST. -- The string in check_fwrite is from the Gateless Gate, for people who want to discuss "Niente". --- gniibe Co-authored-by: NIIBE Yutaka <[email protected]> Signed-off-by: "pengyi" <[email protected]>
Diffstat (limited to 'tests/t-strerror.c')
-rw-r--r--tests/t-strerror.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/t-strerror.c b/tests/t-strerror.c
index 9289066..5c38fca 100644
--- a/tests/t-strerror.c
+++ b/tests/t-strerror.c
@@ -49,7 +49,10 @@ main (int argc, char *argv[])
gpg_err_source_t src;
gpg_err_code_t code;
} list[] = { { 0, 0 }, { 1, 201 }, { 2, 2 }, { 3, 102 },
- { 4, 100 }, { 5, 99 }, { 6, 110 }, { 7, 7 }, { 8, 888 } };
+ { 4, 100 }, { 5, 99 }, { 6, 110 }, { 7, 7 }, { 8, 888 },
+ { 1, GPG_ERR_SYSTEM_ERROR | 1 },
+ { 1, GPG_ERR_SYSTEM_ERROR | 35 },
+ { 1, GPG_ERR_SYSTEM_ERROR | 81 } };
int i = 0;
while (i < sizeof (list) / sizeof (list[0]))