diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2019-08-29 10:51:50 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2019-08-29 10:51:50 +0100 |
commit | 5e3d7561902566f786239c202b289c7be15a3f25 (patch) | |
tree | 4cfcf6c2cf7db8315c346b9f5ab6c708fe8392f6 /string/test | |
parent | 9c8399909a9835e6f55977df1661cf6306c56707 (diff) | |
download | arm-optimized-routines-5e3d7561902566f786239c202b289c7be15a3f25.tar.gz |
string: print passing test cases
Without printing anything on success it is unclear if the right set
of functions got hooked up in the test code.
Diffstat (limited to 'string/test')
-rw-r--r-- | string/test/memchr.c | 5 | ||||
-rw-r--r-- | string/test/memcmp.c | 5 | ||||
-rw-r--r-- | string/test/memcpy.c | 5 | ||||
-rw-r--r-- | string/test/memmove.c | 5 | ||||
-rw-r--r-- | string/test/memset.c | 5 | ||||
-rw-r--r-- | string/test/strchr.c | 5 | ||||
-rw-r--r-- | string/test/strchrnul.c | 5 | ||||
-rw-r--r-- | string/test/strcmp.c | 5 | ||||
-rw-r--r-- | string/test/strcpy.c | 5 | ||||
-rw-r--r-- | string/test/strlen.c | 5 | ||||
-rw-r--r-- | string/test/strncmp.c | 5 | ||||
-rw-r--r-- | string/test/strnlen.c | 5 | ||||
-rw-r--r-- | string/test/strrchr.c | 5 |
13 files changed, 26 insertions, 39 deletions
diff --git a/string/test/memchr.c b/string/test/memchr.c index 8d609c9..1ebc6d6 100644 --- a/string/test/memchr.c +++ b/string/test/memchr.c @@ -85,10 +85,9 @@ int main() test(funtab+i, a, n/2, n); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/memcmp.c b/string/test/memcmp.c index 63b07bd..114f1d7 100644 --- a/string/test/memcmp.c +++ b/string/test/memcmp.c @@ -88,10 +88,9 @@ int main() test(funtab+i, d, s, n, n / 2); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/memcpy.c b/string/test/memcpy.c index 26ab0ec..a6c0e48 100644 --- a/string/test/memcpy.c +++ b/string/test/memcpy.c @@ -88,10 +88,9 @@ int main() for (; n < LEN; n *= 2) test(funtab+i, d, s, n); } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/memmove.c b/string/test/memmove.c index 8164383..c2197c6 100644 --- a/string/test/memmove.c +++ b/string/test/memmove.c @@ -133,10 +133,9 @@ int main() test_overlap(funtab+i, d, s, n); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/memset.c b/string/test/memset.c index c0c7ed6..48c10fa 100644 --- a/string/test/memset.c +++ b/string/test/memset.c @@ -103,10 +103,9 @@ int main() test(funtab+i, s, 0xaa25, n); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/strchr.c b/string/test/strchr.c index 30c714f..a625567 100644 --- a/string/test/strchr.c +++ b/string/test/strchr.c @@ -89,10 +89,9 @@ int main() test(funtab+i, a, n / 2, n); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/strchrnul.c b/string/test/strchrnul.c index c4260e6..814dd1e 100644 --- a/string/test/strchrnul.c +++ b/string/test/strchrnul.c @@ -91,10 +91,9 @@ int main() test(funtab+i, a, n / 2, n); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/strcmp.c b/string/test/strcmp.c index c4e8867..91fa9dd 100644 --- a/string/test/strcmp.c +++ b/string/test/strcmp.c @@ -95,10 +95,9 @@ int main() test(funtab+i, d, s, n, n / 2); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/strcpy.c b/string/test/strcpy.c index 3072ade..4882c9f 100644 --- a/string/test/strcpy.c +++ b/string/test/strcpy.c @@ -91,10 +91,9 @@ int main() for (; n < LEN; n *= 2) test(funtab+i, d, s, n); } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/strlen.c b/string/test/strlen.c index 700c865..ff8e328 100644 --- a/string/test/strlen.c +++ b/string/test/strlen.c @@ -82,10 +82,9 @@ int main() for (; n < LEN; n *= 2) test(funtab+i, a, n); } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/strncmp.c b/string/test/strncmp.c index 14e0a8c..43f941d 100644 --- a/string/test/strncmp.c +++ b/string/test/strncmp.c @@ -95,10 +95,9 @@ int main() test(funtab+i, d, s, n/2, n/2, n); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/strnlen.c b/string/test/strnlen.c index 9a98d80..db41f2a 100644 --- a/string/test/strnlen.c +++ b/string/test/strnlen.c @@ -85,10 +85,9 @@ int main() test(funtab+i, a, n/2, n); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } diff --git a/string/test/strrchr.c b/string/test/strrchr.c index b3fc2a9..6277fae 100644 --- a/string/test/strrchr.c +++ b/string/test/strrchr.c @@ -88,10 +88,9 @@ int main() test(funtab+i, a, n / 2, n); } } - if (test_status) { + printf("%s %s\n", test_status ? "FAIL" : "PASS", funtab[i].name); + if (test_status) r = -1; - ERR("FAIL %s\n", funtab[i].name); - } } return r; } |