Skip to content

Commit 895e959

Browse files
committed
Release 3.9
fixup bos test messages.
1 parent 75617ef commit 895e959

10 files changed

+15
-10
lines changed

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
Changes in 3.9
55
- Add long double support to vsnprintf_s. GH #103
66
With fixes for %a, %g, %G, %#g.
7+
- Added *printf_s configure flags --disable-float, --disable-float-exp,
8+
--disable-long-long, --disable-long-double, --disable-printf-ptrdiff
79
- Fixed %lc, %ls bug in vsnprintf_s.
10+
- Fixed 5 wrong case-mappings with Unicode 15: GH #145.
11+
2 GEORGIAN, 3 VITHKUQI characters.
812
- Fixes for non-POSIX systems missing fileno and ftruncate. GH #136
913
(ecospro compiler)
1014

tests/test_getenv_s.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ int test_getenv_s(void) {
5151
INDCMP(!= 0);
5252
}
5353

54+
EXPECT_BOS("empty name")
5455
rc = getenv_s(&len, NULL, 0, NULL);
5556
ERR_MSVC(ESNULLP, EINVAL);
5657
ind = len;
@@ -76,7 +77,7 @@ int test_getenv_s(void) {
7677
/*--------------------------------------------------*/
7778

7879
#ifndef HAVE_CT_BOS_OVR
79-
EXPECT_BOS("dest overflow")
80+
EXPECT_BOS("dest overflow or empty")
8081
rc = getenv_s(&len, dest, RSIZE_MAX_STR + 1, name);
8182
ERR_MSVC(ESLEMAX, 0);
8283
ind = len;

tests/test_memchr_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int test_memchr_s(void) {
3434
ERR(ESNULLP);
3535
SUBNULL();
3636

37-
EXPECT_BOS("empty result")
37+
EXPECT_BOS("empty resultp")
3838
rc = memchr_s(mem, LEN, ch, NULL);
3939
ERR(ESNULLP);
4040

tests/test_memrchr_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int test_memrchr_s(void) {
3939
ERR(ESNULLP);
4040
SUBNULL();
4141

42-
EXPECT_BOS("empty result")
42+
EXPECT_BOS("empty resultp")
4343
rc = memrchr_s(mem, LEN, ch, NULL);
4444
ERR(ESNULLP);
4545

tests/test_sscanf_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ int test_sscanf_s(void) {
3737

3838
print_msvcrt(use_msvcrt);
3939
#ifndef HAVE_CT_BOS_OVR
40-
EXPECT_BOS("empty fmt")
4140
GCC_DIAG_IGNORE(-Wformat-extra-args)
41+
EXPECT_BOS("empty fmt")
4242
rc = sscanf_s(str1, NULL, NULL);
4343
GCC_DIAG_RESTORE
4444
init_msvcrt(errno == ESNULLP, &use_msvcrt);

tests/test_strisalphanumeric_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int main(void) {
3737
rc = strisalphanumeric_s(str, LEN + 1);
3838
ERR(false)
3939

40-
EXPECT_BOS_TODO("dest overflow")
40+
EXPECT_BOS("dest overflow")
4141
rc = strisalphanumeric_s("", 2);
4242
ERR(false)
4343
#endif

tests/test_strisascii_s.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ int main(void) {
4141
ERR(false)
4242

4343
/* literal strings once fixed via const decl. fragile */
44-
EXPECT_BOS_TODO("dest overflow")
44+
EXPECT_BOS("dest overflow")
4545
rc = strisascii_s("test", RSIZE_MAX_STR + 1);
4646
ERR(false)
4747

48-
EXPECT_BOS_TODO("dest overflow")
48+
EXPECT_BOS("dest overflow")
4949
rc = strisascii_s("", 2);
5050
ERR(false)
5151
#endif

tests/test_strncat_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ int test_strncat_s(void) {
159159
/*--------------------------------------------------*/
160160

161161
strcpy(str1, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
162-
EXPECT_BOS("slen exceeds src")
162+
EXPECT_BOS("slen exceeds src") EXPECT_BOS("src overflow or empty")
163163
rc = strncat_s(str1, 32, "ROString", 31);
164164
ERR_MSVC(EOVERFLOW, EINVAL);
165165
if (!use_msvcrt) {

tests/test_strncpy_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int test_strncpy_s(void) {
154154

155155
// dont clear the const string, but dest.
156156
strcpy(str1, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
157-
EXPECT_BOS("slen exceeds src")
157+
EXPECT_BOS("slen exceeds src") EXPECT_BOS("src overflow or empty")
158158
rc = strncpy_s(str1, 32, "ROString", 31);
159159
ERR(EOVERFLOW); /* slen exceeds src */
160160
if (!use_msvcrt) {

tests/test_strpbrk_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int test_strpbrk_s(void) {
6262
ERR(EOVERFLOW)
6363
NOFIRST()
6464

65-
EXPECT_BOS("slen exceeds src")
65+
EXPECT_BOS("slen exceeds src") EXPECT_BOS("src overflow or empty")
6666
rc = strpbrk_s(str1, LEN, str2, LEN + 1, &first);
6767
ERR(EOVERFLOW)
6868
NOFIRST()

0 commit comments

Comments
 (0)