VirtualBox

Ignore:
Timestamp:
May 14, 2007 2:26:50 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21147
Message:

some flags and fixed broken RTTimeLocaleNow on windows.

File:
1 edited

Legend:

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

    r1 r2629  
    117117
    118118    /*
     119     * Simple test with current local time.
     120     */
     121    CHECK_NZ(RTTimeLocalNow(&Now));
     122    CHECK_NZ(RTTimeExplode(&T1, &Now));
     123    RTPrintf("tstTimeSpec: %RI64 ns - %s\n", RTTimeSpecGetNano(&Now), ToString(&T1));
     124    CHECK_NZ(RTTimeImplode(&Ts1, &T1));
     125    if (!RTTimeSpecIsEqual(&Ts1, &Now))
     126    {
     127        RTPrintf("tstTimeSpec: FAILURE - %RI64 != %RI64\n", RTTimeSpecGetNano(&Ts1), RTTimeSpecGetNano(&Now));
     128        return 1;
     129    }
     130
     131    /*
    119132     * Some simple tests with fixed dates (just checking for smoke).
    120133     */
     
    142155    TEST_SEC(1095379201);
    143156    CHECK_TIME(&T1, 2004, 9,17, 00,00,01,        0, 261, 4, RTTIME_FLAGS_TYPE_UTC | RTTIME_FLAGS_LEAP_YEAR);
     157
     158
     159
    144160    RTPrintf("tstTimeSpec: SUCCESS\n");
    145161    return 0;
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