diff options
Diffstat (limited to 'regress/unittests/utf8')
-rw-r--r-- | regress/unittests/utf8/Makefile | 4 | ||||
-rw-r--r-- | regress/unittests/utf8/tests.c | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/regress/unittests/utf8/Makefile b/regress/unittests/utf8/Makefile index 150ea2f2e..a975264fc 100644 --- a/regress/unittests/utf8/Makefile +++ b/regress/unittests/utf8/Makefile | |||
@@ -1,6 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2016/05/30 12:14:08 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.4 2016/11/01 13:43:27 tb Exp $ |
2 | |||
3 | TEST_ENV= "MALLOC_OPTIONS=CFGJPRSUX" | ||
4 | 2 | ||
5 | PROG=test_utf8 | 3 | PROG=test_utf8 |
6 | SRCS=tests.c | 4 | SRCS=tests.c |
diff --git a/regress/unittests/utf8/tests.c b/regress/unittests/utf8/tests.c index fad2ec279..31f9fe9c3 100644 --- a/regress/unittests/utf8/tests.c +++ b/regress/unittests/utf8/tests.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tests.c,v 1.2 2016/05/30 12:05:56 schwarze Exp $ */ | 1 | /* $OpenBSD: tests.c,v 1.3 2016/12/19 04:55:18 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Regress test for the utf8.h *mprintf() API | 3 | * Regress test for the utf8.h *mprintf() API |
4 | * | 4 | * |
@@ -6,10 +6,12 @@ | |||
6 | * and placed in the public domain. | 6 | * and placed in the public domain. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "includes.h" | ||
10 | |||
9 | #include <locale.h> | 11 | #include <locale.h> |
10 | #include <string.h> | 12 | #include <string.h> |
11 | 13 | ||
12 | #include "test_helper.h" | 14 | #include "../test_helper/test_helper.h" |
13 | 15 | ||
14 | #include "utf8.h" | 16 | #include "utf8.h" |
15 | 17 | ||
@@ -63,7 +65,6 @@ tests(void) | |||
63 | TEST_DONE(); | 65 | TEST_DONE(); |
64 | 66 | ||
65 | badarg(); | 67 | badarg(); |
66 | one("null", NULL, 8, 6, 6, "(null)"); | ||
67 | one("empty", "", 2, 0, 0, ""); | 68 | one("empty", "", 2, 0, 0, ""); |
68 | one("ascii", "x", -2, -2, -2, "x"); | 69 | one("ascii", "x", -2, -2, -2, "x"); |
69 | one("newline", "a\nb", -2, -2, -2, "a\nb"); | 70 | one("newline", "a\nb", -2, -2, -2, "a\nb"); |