Skip to content

Commit 1758de1

Browse files
authored
testcase 修改 (#7688)
1 parent e8c0a74 commit 1758de1

File tree

1 file changed

+2
-2
lines changed
  • examples/utest/testcases/posix/stdlib_h/functions

1 file changed

+2
-2
lines changed

examples/utest/testcases/posix/stdlib_h/functions/strtol_tc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ int strtol_entry(void)
9797
TEST(l, strtol(s = "0F5F", &c, 16), 0x0f5fL, "%ld != %ld");
9898

9999
TEST(l, strtol(s = "0xz", &c, 16), 0L, "%ld != %ld");
100-
TEST3(i, c - s, 1, "wrong final position %ld != %ld");
100+
TEST2(i, c - s, 1, "wrong final position %ld != %ld");
101101

102102
TEST(l, strtol(s = "0x1234", &c, 16), 0x1234, "%ld != %ld");
103103
TEST2(i, c - s, 6, "wrong final position %ld != %ld");
104104

105105
c = NULL;
106-
TEST3(l, strtol(s = "123", &c, 37), 0, "%ld != %ld");
106+
TEST3(l, strtol(s = "123", &c, 36), 0, "%ld != %ld");
107107
TEST3(i, c - s, 0, "wrong final position %d != %d");
108108

109109
TEST(l, strtol(s = " 15437", &c, 8), 015437, "%ld != %ld");

0 commit comments

Comments
 (0)