VirtualBox

Changeset 96373 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Aug 20, 2022 3:08:08 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/nocrt: Implemented wcslen. bugref:10261

Location:
trunk/src/VBox/Runtime/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/Makefile.kmk

    r96338 r96373  
    582582        ../common/string/strcmp.asm \
    583583        ../common/string/strcpy.asm \
    584         ../common/string/strlen.asm
     584        ../common/string/strlen.asm \
     585        ../common/string/wcslen.asm
    585586
    586587tstRTNoCrt-2_TEMPLATE = VBOXR3TSTEXE
  • trunk/src/VBox/Runtime/testcase/tstNoCrt-1.cpp

    r93115 r96373  
    493493    cch = RT_NOCRT(strlen)(s_szTest3);      CHECK_CCH(sizeof(s_szTest3) - 1);
    494494
     495#ifdef _MSC_VER
     496    /*
     497     * Some simple wcslen checks.
     498     */
     499    RTPrintf("tstNoCrt-1: wcslen\n");
     500    cch = RT_NOCRT(wcslen)(L"");             CHECK_CCH(0);
     501    cch = RT_NOCRT(wcslen)(L"1");            CHECK_CCH(1);
     502    cch = RT_NOCRT(wcslen)(L"12");           CHECK_CCH(2);
     503    cch = RT_NOCRT(wcslen)(L"123");          CHECK_CCH(3);
     504    cch = RT_NOCRT(wcslen)(L"1234");         CHECK_CCH(4);
     505    cch = RT_NOCRT(wcslen)(L"12345");        CHECK_CCH(5);
     506#endif
     507
    495508    /*
    496509     * Summary.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette