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 "errno.h"
383d8536b4Sopenharmony_ci#include "limits.h"
393d8536b4Sopenharmony_ci#include "stdlib.h"
403d8536b4Sopenharmony_ci#include "string.h"
413d8536b4Sopenharmony_ci#include "log.h"
423d8536b4Sopenharmony_ci
433d8536b4Sopenharmony_ci/* *
443d8536b4Sopenharmony_ci * @tc.desc      : register a test suite, this suite is used to test basic flow and interface dependency
453d8536b4Sopenharmony_ci * @param        : subsystem name is utils
463d8536b4Sopenharmony_ci * @param        : module name is utilsFile
473d8536b4Sopenharmony_ci * @param        : test suit name is CmsisTaskFuncTestSuite
483d8536b4Sopenharmony_ci */
493d8536b4Sopenharmony_ciLITE_TEST_SUIT(Posix, Posixtimer, PosixStdlibStrtoullTest);
503d8536b4Sopenharmony_ci
513d8536b4Sopenharmony_ci/* *
523d8536b4Sopenharmony_ci * @tc.setup     : setup for all testcases
533d8536b4Sopenharmony_ci * @return       : setup result, TRUE is success, FALSE is fail
543d8536b4Sopenharmony_ci */
553d8536b4Sopenharmony_cistatic BOOL PosixStdlibStrtoullTestSetUp(void)
563d8536b4Sopenharmony_ci{
573d8536b4Sopenharmony_ci    return TRUE;
583d8536b4Sopenharmony_ci}
593d8536b4Sopenharmony_ci
603d8536b4Sopenharmony_ci/* *
613d8536b4Sopenharmony_ci * @tc.teardown  : teardown for all testcases
623d8536b4Sopenharmony_ci * @return       : teardown result, TRUE is success, FALSE is fail
633d8536b4Sopenharmony_ci */
643d8536b4Sopenharmony_cistatic BOOL PosixStdlibStrtoullTestTearDown(void)
653d8536b4Sopenharmony_ci{
663d8536b4Sopenharmony_ci    LOG("+-------------------------------------------+\n");
673d8536b4Sopenharmony_ci    return TRUE;
683d8536b4Sopenharmony_ci}
693d8536b4Sopenharmony_ci
703d8536b4Sopenharmony_ci/* *
713d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_001
723d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
733d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
743d8536b4Sopenharmony_ci */
753d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull001, Function | MediumTest | Level1)
763d8536b4Sopenharmony_ci{
773d8536b4Sopenharmony_ci    char nPtr[] = "12 0110 0XDEFE 0666 1.6";
783d8536b4Sopenharmony_ci    char *endPtr = NULL;
793d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 10);
803d8536b4Sopenharmony_ci    if (ret == 12ULL) {
813d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 1:strtoull(base=10) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
823d8536b4Sopenharmony_ci    } else {
833d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 1:strtoull(base=10) ret:%llu,%s fail.\n", ret, nPtr);
843d8536b4Sopenharmony_ci    }
853d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, 12ULL, 0);
863d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0110 0XDEFE 0666 1.6", 0);
873d8536b4Sopenharmony_ci    return 0;
883d8536b4Sopenharmony_ci}
893d8536b4Sopenharmony_ci
903d8536b4Sopenharmony_ci/* *
913d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_002
923d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
933d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
943d8536b4Sopenharmony_ci */
953d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull002, Function | MediumTest | Level1)
963d8536b4Sopenharmony_ci{
973d8536b4Sopenharmony_ci    char nPtr[] = " 0110 0XDEFE 0666 1.6";
983d8536b4Sopenharmony_ci    char *endPtr = NULL;
993d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 2);
1003d8536b4Sopenharmony_ci    if (ret == 6ULL) {
1013d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 2:strtoull(base=2) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
1023d8536b4Sopenharmony_ci    } else {
1033d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 2:strtoull(base=2) ret:%llu,%s fail.\n", ret, nPtr);
1043d8536b4Sopenharmony_ci    }
1053d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, 6ULL, 0);
1063d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0XDEFE 0666 1.6", 0);
1073d8536b4Sopenharmony_ci    return 0;
1083d8536b4Sopenharmony_ci}
1093d8536b4Sopenharmony_ci
1103d8536b4Sopenharmony_ci/* *
1113d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_003
1123d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
1133d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
1143d8536b4Sopenharmony_ci */
1153d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull003, Function | MediumTest | Level1)
1163d8536b4Sopenharmony_ci{
1173d8536b4Sopenharmony_ci    char nPtr[] = " 0XDEFE 0666 1.6";
1183d8536b4Sopenharmony_ci    char *endPtr = NULL;
1193d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 16);
1203d8536b4Sopenharmony_ci    if (ret == 0XDEFEULL) {
1213d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 3:strtoull(base=16) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
1223d8536b4Sopenharmony_ci    } else {
1233d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 3:strtoull(base=16) ret:%llu,%s fail.\n", ret, nPtr);
1243d8536b4Sopenharmony_ci    }
1253d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, 0XDEFEULL, 0);
1263d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0666 1.6", 0);
1273d8536b4Sopenharmony_ci    return 0;
1283d8536b4Sopenharmony_ci}
1293d8536b4Sopenharmony_ci
1303d8536b4Sopenharmony_ci/* *
1313d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_004
1323d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
1333d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
1343d8536b4Sopenharmony_ci */
1353d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull004, Function | MediumTest | Level1)
1363d8536b4Sopenharmony_ci{
1373d8536b4Sopenharmony_ci    char nPtr[] = " 0666 1.6";
1383d8536b4Sopenharmony_ci    char *endPtr = NULL;
1393d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 8);
1403d8536b4Sopenharmony_ci    if (ret == 0666ULL) {
1413d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 4:strtoull(base=8) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
1423d8536b4Sopenharmony_ci    } else {
1433d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 4:strtoull(base=8) ret:%llu,%s fail.\n", ret, nPtr);
1443d8536b4Sopenharmony_ci    }
1453d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, 0666ULL, 0);
1463d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 1.6", 0);
1473d8536b4Sopenharmony_ci    return 0;
1483d8536b4Sopenharmony_ci}
1493d8536b4Sopenharmony_ci
1503d8536b4Sopenharmony_ci#if (LOSCFG_LIBC_MUSL == 1)
1513d8536b4Sopenharmony_ci/* *
1523d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_005
1533d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
1543d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
1553d8536b4Sopenharmony_ci */
1563d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull005, Function | MediumTest | Level1)
1573d8536b4Sopenharmony_ci{
1583d8536b4Sopenharmony_ci    char nPtr[] = " 1.6";
1593d8536b4Sopenharmony_ci    char *endPtr = NULL;
1603d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 65);
1613d8536b4Sopenharmony_ci    if (ret == 0ULL) {
1623d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 5:strtoull(base=65) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
1633d8536b4Sopenharmony_ci    } else {
1643d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 5:strtoull(base=65) ret:%llu,%s fail.\n", ret, nPtr);
1653d8536b4Sopenharmony_ci    }
1663d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, 0ULL, ret);
1673d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 1.6", 0);
1683d8536b4Sopenharmony_ci    return 0;
1693d8536b4Sopenharmony_ci}
1703d8536b4Sopenharmony_ci#endif
1713d8536b4Sopenharmony_ci
1723d8536b4Sopenharmony_ci/* *
1733d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_006
1743d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
1753d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
1763d8536b4Sopenharmony_ci */
1773d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull006, Function | MediumTest | Level1)
1783d8536b4Sopenharmony_ci{
1793d8536b4Sopenharmony_ci    char nPtr[] = ".6";
1803d8536b4Sopenharmony_ci    char *endPtr = NULL;
1813d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 0);
1823d8536b4Sopenharmony_ci    if (ret == 0ULL) {
1833d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 6:strtoull(base=0) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
1843d8536b4Sopenharmony_ci    } else {
1853d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 6:strtoull(base=0) ret:%llu,%s fail.\n", ret, nPtr);
1863d8536b4Sopenharmony_ci    }
1873d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, 0ULL, 0);
1883d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, ".6", 0);
1893d8536b4Sopenharmony_ci    return 0;
1903d8536b4Sopenharmony_ci}
1913d8536b4Sopenharmony_ci
1923d8536b4Sopenharmony_ci/* *
1933d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_007
1943d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
1953d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
1963d8536b4Sopenharmony_ci */
1973d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull007, Function | MediumTest | Level1)
1983d8536b4Sopenharmony_ci{
1993d8536b4Sopenharmony_ci    char nPtr[] = "18446744073709551615 18446744073709551616";
2003d8536b4Sopenharmony_ci    char *endPtr = NULL;
2013d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 10);
2023d8536b4Sopenharmony_ci    if (ret == 18446744073709551615ULL) {
2033d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 7:strtoull(base=10) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
2043d8536b4Sopenharmony_ci    } else {
2053d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 7:strtoull(base=10) ret:%llu,%s fail.\n", ret, nPtr);
2063d8536b4Sopenharmony_ci    }
2073d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, 18446744073709551615ULL, 0);
2083d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 18446744073709551616", 0);
2093d8536b4Sopenharmony_ci    return 0;
2103d8536b4Sopenharmony_ci}
2113d8536b4Sopenharmony_ci
2123d8536b4Sopenharmony_ci/* *
2133d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_008
2143d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
2153d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
2163d8536b4Sopenharmony_ci */
2173d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull008, Function | MediumTest | Level1)
2183d8536b4Sopenharmony_ci{
2193d8536b4Sopenharmony_ci    char nPtr[] = " 18446744073709551616";
2203d8536b4Sopenharmony_ci    char *endPtr = NULL;
2213d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 10);
2223d8536b4Sopenharmony_ci    if (ret == 0ULL) {
2233d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 8:strtoull(base=10) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
2243d8536b4Sopenharmony_ci    } else {
2253d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 8:strtoull(base=10) ret:%llu,%s fail.\n", ret, nPtr);
2263d8536b4Sopenharmony_ci    }
2273d8536b4Sopenharmony_ci
2283d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, ULLONG_MAX, ret);
2293d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(errno, ERANGE, errno);
2303d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, "", 0);
2313d8536b4Sopenharmony_ci    return 0;
2323d8536b4Sopenharmony_ci}
2333d8536b4Sopenharmony_ci
2343d8536b4Sopenharmony_ci/* *
2353d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_009
2363d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
2373d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
2383d8536b4Sopenharmony_ci */
2393d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull009, Function | MediumTest | Level1)
2403d8536b4Sopenharmony_ci{
2413d8536b4Sopenharmony_ci    char nPtr[] = "0XDEFE 0666";
2423d8536b4Sopenharmony_ci    char *endPtr = NULL;
2433d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 0);
2443d8536b4Sopenharmony_ci    if (ret == 0XDEFEULL) {
2453d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 9:strtoull(base=0) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
2463d8536b4Sopenharmony_ci    } else {
2473d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 9:strtoull(base=0) ret:%llu,%s fail.\n", ret, nPtr);
2483d8536b4Sopenharmony_ci    }
2493d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, 0XDEFEULL, ret);
2503d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0666", 0);
2513d8536b4Sopenharmony_ci    return 0;
2523d8536b4Sopenharmony_ci}
2533d8536b4Sopenharmony_ci
2543d8536b4Sopenharmony_ci/* *
2553d8536b4Sopenharmony_ci * @tc.number    : TEST_STDLIB_STRTOULL_010
2563d8536b4Sopenharmony_ci * @tc.name      : convert string by Strtoull
2573d8536b4Sopenharmony_ci * @tc.desc      : [C- SOFTWARE -0200]
2583d8536b4Sopenharmony_ci */
2593d8536b4Sopenharmony_ciLITE_TEST_CASE(PosixStdlibStrtoullTest, testStdlibStrtoull010, Function | MediumTest | Level1)
2603d8536b4Sopenharmony_ci{
2613d8536b4Sopenharmony_ci    char nPtr[] = " 0666";
2623d8536b4Sopenharmony_ci    char *endPtr = NULL;
2633d8536b4Sopenharmony_ci    unsigned long long ret = strtoull(nPtr, &endPtr, 0);
2643d8536b4Sopenharmony_ci    if (ret == 0666ULL) {
2653d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 10:strtoull(base=0) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
2663d8536b4Sopenharmony_ci    } else {
2673d8536b4Sopenharmony_ci        LOG("[DEMO] posix stdlib test case 10:strtoull(base=0) ret:%llu,%s fail.\n", ret, nPtr);
2683d8536b4Sopenharmony_ci    }
2693d8536b4Sopenharmony_ci    ICUNIT_ASSERT_EQUAL(ret, 0666ULL, ret);
2703d8536b4Sopenharmony_ci    ICUNIT_ASSERT_STRING_EQUAL(endPtr, "", 0);
2713d8536b4Sopenharmony_ci    return 0;
2723d8536b4Sopenharmony_ci}
2733d8536b4Sopenharmony_ci
2743d8536b4Sopenharmony_ciRUN_TEST_SUITE(PosixStdlibStrtoullTest);
2753d8536b4Sopenharmony_ci
2763d8536b4Sopenharmony_ci
2773d8536b4Sopenharmony_civoid PosixStdlibStrtoullFuncTest()
2783d8536b4Sopenharmony_ci{
2793d8536b4Sopenharmony_ci    LOG("begin PosixStdlibStrtoullFuncTest....");
2803d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull001);
2813d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull002);
2823d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull003);
2833d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull004);
2843d8536b4Sopenharmony_ci#if (LOSCFG_LIBC_MUSL == 1)
2853d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull005);
2863d8536b4Sopenharmony_ci#endif
2873d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull006);
2883d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull007);
2893d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull008);
2903d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull009);
2913d8536b4Sopenharmony_ci    RUN_ONE_TESTCASE(testStdlibStrtoull010);
2923d8536b4Sopenharmony_ci
2933d8536b4Sopenharmony_ci    return;
2943d8536b4Sopenharmony_ci}