13d8536b4Sopenharmony_ci/* 23d8536b4Sopenharmony_ci * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 33d8536b4Sopenharmony_ci * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 43d8536b4Sopenharmony_ci * 53d8536b4Sopenharmony_ci * Redistribution and use in source and binary forms, with or without modification, 63d8536b4Sopenharmony_ci * are permitted provided that the following conditions are met: 73d8536b4Sopenharmony_ci * 83d8536b4Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright notice, this list of 93d8536b4Sopenharmony_ci * conditions and the following disclaimer. 103d8536b4Sopenharmony_ci * 113d8536b4Sopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright notice, this list 123d8536b4Sopenharmony_ci * of conditions and the following disclaimer in the documentation and/or other materials 133d8536b4Sopenharmony_ci * provided with the distribution. 143d8536b4Sopenharmony_ci * 153d8536b4Sopenharmony_ci * 3. Neither the name of the copyright holder nor the names of its contributors may be used 163d8536b4Sopenharmony_ci * to endorse or promote products derived from this software without specific prior written 173d8536b4Sopenharmony_ci * permission. 183d8536b4Sopenharmony_ci * 193d8536b4Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 203d8536b4Sopenharmony_ci * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 213d8536b4Sopenharmony_ci * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 223d8536b4Sopenharmony_ci * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 233d8536b4Sopenharmony_ci * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 243d8536b4Sopenharmony_ci * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 253d8536b4Sopenharmony_ci * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 263d8536b4Sopenharmony_ci * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 273d8536b4Sopenharmony_ci * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 283d8536b4Sopenharmony_ci * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 293d8536b4Sopenharmony_ci * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 303d8536b4Sopenharmony_ci */ 313d8536b4Sopenharmony_ci 323d8536b4Sopenharmony_ci#include "ohos_types.h" 333d8536b4Sopenharmony_ci#include "posix_test.h" 343d8536b4Sopenharmony_ci#include "los_config.h" 353d8536b4Sopenharmony_ci#include "kernel_test.h" 363d8536b4Sopenharmony_ci#include "ctype.h" 373d8536b4Sopenharmony_ci#include "stdlib.h" 383d8536b4Sopenharmony_ci#include "string.h" 393d8536b4Sopenharmony_ci#include "limits.h" 403d8536b4Sopenharmony_ci#include "log.h" 413d8536b4Sopenharmony_ci 423d8536b4Sopenharmony_ci/* * 433d8536b4Sopenharmony_ci * @tc.desc : register a test suite, this suite is used to test basic flow and interface dependency 443d8536b4Sopenharmony_ci * @param : subsystem name is utils 453d8536b4Sopenharmony_ci * @param : module name is utilsFile 463d8536b4Sopenharmony_ci * @param : test suit name is CmsisTaskFuncTestSuite 473d8536b4Sopenharmony_ci */ 483d8536b4Sopenharmony_ciLITE_TEST_SUIT(Posix, Posixtimer, PosixStdlibStrtoulTest); 493d8536b4Sopenharmony_ci 503d8536b4Sopenharmony_ci/* * 513d8536b4Sopenharmony_ci * @tc.setup : setup for all testcases 523d8536b4Sopenharmony_ci * @return : setup result, TRUE is success, FALSE is fail 533d8536b4Sopenharmony_ci */ 543d8536b4Sopenharmony_cistatic BOOL PosixStdlibStrtoulTestSetUp(void) 553d8536b4Sopenharmony_ci{ 563d8536b4Sopenharmony_ci return TRUE; 573d8536b4Sopenharmony_ci} 583d8536b4Sopenharmony_ci 593d8536b4Sopenharmony_ci/* * 603d8536b4Sopenharmony_ci * @tc.teardown : teardown for all testcases 613d8536b4Sopenharmony_ci * @return : teardown result, TRUE is success, FALSE is fail 623d8536b4Sopenharmony_ci */ 633d8536b4Sopenharmony_cistatic BOOL PosixStdlibStrtoulTestTearDown(void) 643d8536b4Sopenharmony_ci{ 653d8536b4Sopenharmony_ci LOG("+-------------------------------------------+\n"); 663d8536b4Sopenharmony_ci return TRUE; 673d8536b4Sopenharmony_ci} 683d8536b4Sopenharmony_ci 693d8536b4Sopenharmony_ci/* * 703d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_001 713d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 723d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 733d8536b4Sopenharmony_ci */ 743d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul001, Function | MediumTest | Level1) 753d8536b4Sopenharmony_ci{ 763d8536b4Sopenharmony_ci char nPtr[] = "12 0110 0XDEFE 0666 4294967295 4294967296 12.34"; 773d8536b4Sopenharmony_ci char *endPtr = NULL; 783d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 10); 793d8536b4Sopenharmony_ci if (ret == 12UL) { 803d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 1:strtoul(base=10) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 813d8536b4Sopenharmony_ci } else { 823d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 1:strtoul(base=10) ret:%lu,%s fail.\n", ret, nPtr); 833d8536b4Sopenharmony_ci } 843d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, 12UL, ret); 853d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0110 0XDEFE 0666 4294967295 4294967296 12.34", 0); 863d8536b4Sopenharmony_ci return 0; 873d8536b4Sopenharmony_ci} 883d8536b4Sopenharmony_ci 893d8536b4Sopenharmony_ci/* * 903d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_002 913d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 923d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 933d8536b4Sopenharmony_ci */ 943d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul002, Function | MediumTest | Level1) 953d8536b4Sopenharmony_ci{ 963d8536b4Sopenharmony_ci char nPtr[] = " 0110 0XDEFE 0666 4294967295 4294967296 12.34"; 973d8536b4Sopenharmony_ci char *endPtr = NULL; 983d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 2); 993d8536b4Sopenharmony_ci if (ret == 6UL) { 1003d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 2:strtoul(base=2) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 1013d8536b4Sopenharmony_ci } else { 1023d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 2:strtoul(base=2) ret:%lu,%s fail.\n", ret, endPtr); 1033d8536b4Sopenharmony_ci } 1043d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, 6UL, ret); 1053d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0XDEFE 0666 4294967295 4294967296 12.34", 0); 1063d8536b4Sopenharmony_ci return 0; 1073d8536b4Sopenharmony_ci} 1083d8536b4Sopenharmony_ci 1093d8536b4Sopenharmony_ci/* * 1103d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_003 1113d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 1123d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 1133d8536b4Sopenharmony_ci */ 1143d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul003, Function | MediumTest | Level1) 1153d8536b4Sopenharmony_ci{ 1163d8536b4Sopenharmony_ci char nPtr[] = " 0XDEFE 0666 4294967295 4294967296 12.34"; 1173d8536b4Sopenharmony_ci char *endPtr = NULL; 1183d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 16); 1193d8536b4Sopenharmony_ci if (ret == 0XDEFEUL) { 1203d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 3:strtoul(base=16) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 1213d8536b4Sopenharmony_ci } else { 1223d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 3:strtoul(base=16) ret:%lu,%s fail.\n", ret, endPtr); 1233d8536b4Sopenharmony_ci } 1243d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, 0XDEFEUL, ret); 1253d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0666 4294967295 4294967296 12.34", 0); 1263d8536b4Sopenharmony_ci return 0; 1273d8536b4Sopenharmony_ci} 1283d8536b4Sopenharmony_ci 1293d8536b4Sopenharmony_ci/* * 1303d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_004 1313d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 1323d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 1333d8536b4Sopenharmony_ci */ 1343d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul004, Function | MediumTest | Level1) 1353d8536b4Sopenharmony_ci{ 1363d8536b4Sopenharmony_ci char nPtr[] = " 0666 4294967295 4294967296 12.34"; 1373d8536b4Sopenharmony_ci char *endPtr = NULL; 1383d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 8); 1393d8536b4Sopenharmony_ci if (ret == 0666UL) { 1403d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 4:strtoul(base=8) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 1413d8536b4Sopenharmony_ci } else { 1423d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 4:strtoul(base=8) ret:%lu,%s fail.\n", ret, endPtr); 1433d8536b4Sopenharmony_ci } 1443d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, 0666UL, ret); 1453d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 4294967295 4294967296 12.34", 0); 1463d8536b4Sopenharmony_ci return 0; 1473d8536b4Sopenharmony_ci} 1483d8536b4Sopenharmony_ci 1493d8536b4Sopenharmony_ci/* * 1503d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_005 1513d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 1523d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 1533d8536b4Sopenharmony_ci */ 1543d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul005, Function | MediumTest | Level1) 1553d8536b4Sopenharmony_ci{ 1563d8536b4Sopenharmony_ci char nPtr[] = " 4294967295 4294967296 12.34"; 1573d8536b4Sopenharmony_ci char *endPtr = NULL; 1583d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 0); 1593d8536b4Sopenharmony_ci if (ret == 4294967295UL) { 1603d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 5:strtoul(base=0) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 1613d8536b4Sopenharmony_ci } else { 1623d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 5:strtoul(base=0) ret:%lu,%s fail.\n", ret, endPtr); 1633d8536b4Sopenharmony_ci } 1643d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, 4294967295UL, ret); 1653d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 4294967296 12.34", 0); 1663d8536b4Sopenharmony_ci return 0; 1673d8536b4Sopenharmony_ci} 1683d8536b4Sopenharmony_ci 1693d8536b4Sopenharmony_ci/* * 1703d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_006 1713d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 1723d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 1733d8536b4Sopenharmony_ci */ 1743d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul006, Function | MediumTest | Level1) 1753d8536b4Sopenharmony_ci{ 1763d8536b4Sopenharmony_ci char nPtr[] = " 4294967296 12.34"; 1773d8536b4Sopenharmony_ci char *endPtr = NULL; 1783d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 0); 1793d8536b4Sopenharmony_ci if (ret == 0UL) { 1803d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 6:strtoul(base=0) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 1813d8536b4Sopenharmony_ci } else { 1823d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 6:strtoul(base=0) ret:%lu,%s fail.\n", ret, endPtr); 1833d8536b4Sopenharmony_ci } 1843d8536b4Sopenharmony_ci 1853d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, ULONG_MAX, ret); 1863d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 12.34", 0); 1873d8536b4Sopenharmony_ci return 0; 1883d8536b4Sopenharmony_ci} 1893d8536b4Sopenharmony_ci 1903d8536b4Sopenharmony_ci#if (LOSCFG_LIBC_MUSL == 1) 1913d8536b4Sopenharmony_ci/* * 1923d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_007 1933d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 1943d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 1953d8536b4Sopenharmony_ci */ 1963d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul007, Function | MediumTest | Level1) 1973d8536b4Sopenharmony_ci{ 1983d8536b4Sopenharmony_ci char nPtr[] = " 12.34"; 1993d8536b4Sopenharmony_ci char *endPtr = NULL; 2003d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 65); 2013d8536b4Sopenharmony_ci if (ret == 0UL) { 2023d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 7:strtoul(base=65) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 2033d8536b4Sopenharmony_ci } else { 2043d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 7:strtoul(base=65) ret:%lu,%s fail.\n", ret, endPtr); 2053d8536b4Sopenharmony_ci } 2063d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, 0UL, ret); 2073d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 12.34", 0); 2083d8536b4Sopenharmony_ci return 0; 2093d8536b4Sopenharmony_ci} 2103d8536b4Sopenharmony_ci#endif 2113d8536b4Sopenharmony_ci 2123d8536b4Sopenharmony_ci/* * 2133d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_008 2143d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 2153d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 2163d8536b4Sopenharmony_ci */ 2173d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul008, Function | MediumTest | Level1) 2183d8536b4Sopenharmony_ci{ 2193d8536b4Sopenharmony_ci char nPtr[] = ".34"; 2203d8536b4Sopenharmony_ci char *endPtr = NULL; 2213d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 0); 2223d8536b4Sopenharmony_ci if (ret == 0UL) { 2233d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 8:strtoul(base=0) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 2243d8536b4Sopenharmony_ci } else { 2253d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 8:strtoul(base=0) ret:%lu,%s fail.\n", ret, endPtr); 2263d8536b4Sopenharmony_ci } 2273d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, 0UL, ret); 2283d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, ".34", 0); 2293d8536b4Sopenharmony_ci return 0; 2303d8536b4Sopenharmony_ci} 2313d8536b4Sopenharmony_ci 2323d8536b4Sopenharmony_ci/** 2333d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_009 2343d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 2353d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 2363d8536b4Sopenharmony_ci */ 2373d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul009, Function | MediumTest | Level1) 2383d8536b4Sopenharmony_ci{ 2393d8536b4Sopenharmony_ci char nPtr[] = "0XDEFE 0666"; 2403d8536b4Sopenharmony_ci char *endPtr = NULL; 2413d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 0); 2423d8536b4Sopenharmony_ci if (ret == 0XDEFE) { 2433d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 9:strtoul(base=0) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 2443d8536b4Sopenharmony_ci } else { 2453d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 9:strtoul(base=0) ret:%lu,%s fail.\n", ret, endPtr); 2463d8536b4Sopenharmony_ci } 2473d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, 0XDEFE, ret); 2483d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0666", 0); 2493d8536b4Sopenharmony_ci return 0; 2503d8536b4Sopenharmony_ci} 2513d8536b4Sopenharmony_ci 2523d8536b4Sopenharmony_ci/* * 2533d8536b4Sopenharmony_ci * @tc.number : TEST_STDLIB_STRTOUL_010 2543d8536b4Sopenharmony_ci * @tc.name : convert string by strtoul 2553d8536b4Sopenharmony_ci * @tc.desc : [C- SOFTWARE -0200] 2563d8536b4Sopenharmony_ci */ 2573d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoulTest, testStdlibStrtoul010, Function | MediumTest | Level1) 2583d8536b4Sopenharmony_ci{ 2593d8536b4Sopenharmony_ci char nPtr[] = " 0666"; 2603d8536b4Sopenharmony_ci char *endPtr = NULL; 2613d8536b4Sopenharmony_ci unsigned long ret = strtoul(nPtr, &endPtr, 0); 2623d8536b4Sopenharmony_ci if (ret == 0666) { 2633d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 9:strtoul(base=0) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr); 2643d8536b4Sopenharmony_ci } else { 2653d8536b4Sopenharmony_ci LOG("[DEMO] posix stdlib test case 9:strtoul(base=0) ret:%lu,%s fail.\n", ret, endPtr); 2663d8536b4Sopenharmony_ci } 2673d8536b4Sopenharmony_ci ICUNIT_ASSERT_EQUAL(ret, 0666, ret); 2683d8536b4Sopenharmony_ci ICUNIT_ASSERT_STRING_EQUAL(endPtr, "", 0); 2693d8536b4Sopenharmony_ci return 0; 2703d8536b4Sopenharmony_ci} 2713d8536b4Sopenharmony_ci 2723d8536b4Sopenharmony_ciRUN_TEST_SUITE(PosixStdlibStrtoulTest); 2733d8536b4Sopenharmony_ci 2743d8536b4Sopenharmony_civoid PosixStdlibStrtoulFuncTest() 2753d8536b4Sopenharmony_ci{ 2763d8536b4Sopenharmony_ci LOG("begin PosixStdlibStrtoulFuncTest...."); 2773d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul001); 2783d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul002); 2793d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul003); 2803d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul004); 2813d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul005); 2823d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul006); 2833d8536b4Sopenharmony_ci#if (LOSCFG_LIBC_MUSL == 1) 2843d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul007); 2853d8536b4Sopenharmony_ci#endif 2863d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul008); 2873d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul009); 2883d8536b4Sopenharmony_ci RUN_ONE_TESTCASE(testStdlibStrtoul010); 2893d8536b4Sopenharmony_ci 2903d8536b4Sopenharmony_ci return; 2913d8536b4Sopenharmony_ci}