summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorzhangyan <[email protected]>2023-06-18 21:40:02 +0800
committerGitHub <[email protected]>2023-06-18 21:40:02 +0800
commit1758de1be1a8ed48f0dff7d30efb38ee65f6111c (patch)
treed027fd4cb8dfb1f5b2e8d231e8144f6bdcd02eca /examples
parente8c0a74036e9b750d032a43a3e002ee22fba9fb9 (diff)
testcase 修改 (#7688)
Diffstat (limited to 'examples')
-rw-r--r--examples/utest/testcases/posix/stdlib_h/functions/strtol_tc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/utest/testcases/posix/stdlib_h/functions/strtol_tc.c b/examples/utest/testcases/posix/stdlib_h/functions/strtol_tc.c
index 5a97aff3ce..747ed5666a 100644
--- a/examples/utest/testcases/posix/stdlib_h/functions/strtol_tc.c
+++ b/examples/utest/testcases/posix/stdlib_h/functions/strtol_tc.c
@@ -97,13 +97,13 @@ int strtol_entry(void)
TEST(l, strtol(s = "0F5F", &c, 16), 0x0f5fL, "%ld != %ld");
TEST(l, strtol(s = "0xz", &c, 16), 0L, "%ld != %ld");
- TEST3(i, c - s, 1, "wrong final position %ld != %ld");
+ TEST2(i, c - s, 1, "wrong final position %ld != %ld");
TEST(l, strtol(s = "0x1234", &c, 16), 0x1234, "%ld != %ld");
TEST2(i, c - s, 6, "wrong final position %ld != %ld");
c = NULL;
- TEST3(l, strtol(s = "123", &c, 37), 0, "%ld != %ld");
+ TEST3(l, strtol(s = "123", &c, 36), 0, "%ld != %ld");
TEST3(i, c - s, 0, "wrong final position %d != %d");
TEST(l, strtol(s = " 15437", &c, 8), 015437, "%ld != %ld");