VirtualBox

Ignore:
Timestamp:
Jun 15, 2009 11:49:07 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48658
Message:

IPRT/testcase: Use RTTestInitAndCreate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstUtf8.cpp

    r18847 r20606  
    4343#include <iprt/test.h>
    4444
    45 #include <stdlib.h>
     45#include <stdlib.h> /** @todo use our random. */
    4646
    4747
     
    929929{
    930930    /*
    931      * Init the runtime and stuff.
     931     * Init the runtime, test and say hello.
    932932     */
    933933    RTTEST hTest;
    934     if (    RT_FAILURE(RTR3Init())
    935         ||  RT_FAILURE(RTTestCreate("tstUtf8", &hTest)))
    936     {
    937         RTPrintf("tstBitstUtf8: fatal initialization error\n");
    938         return 1;
    939     }
     934    int rc = RTTestInitAndCreate("tstUtf8", &hTest);
     935    if (rc)
     936        return rc;
    940937    RTTestBanner(hTest);
    941938
     939    /*
     940     * Run the test.
     941     */
    942942    InitStrings();
    943943    test1(hTest);
     
    953953    return RTTestSummaryAndDestroy(hTest);
    954954}
     955
Note: See TracChangeset for help on using the changeset viewer.

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