VirtualBox

Ignore:
Timestamp:
Mar 5, 2019 12:53:05 PM (6 years ago)
Author:
vboxsync
Message:

FsPerf: Fix mmap coherency test, adjust rmdir(..). bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/fs/FsPerf.cpp

    r77540 r77566  
    12141214#endif
    12151215#if defined(RT_OS_WINDOWS)
    1216     RTTESTI_CHECK_RC(RTDirRemove(InDir(RT_STR_TUPLE(".."))), VERR_SHARING_VIOLATION); /* weird */
     1216    int rc = RTDirRemove(InDir(RT_STR_TUPLE("..")));
     1217    if (rc != VERR_DIR_NOT_EMPTY /*ntfs root*/ && rc != VERR_SHARING_VIOLATION /*ntfs weird*/)
     1218        RTTestIFailed("RTDirRemove(%s) -> %Rrc, expected VERR_DIR_NOT_EMPTY or VERR_SHARING_VIOLATION",  g_szDir, rc);
    12171219#else
    12181220    RTTESTI_CHECK_RC(RTDirRemove(InDir(RT_STR_TUPLE(".."))), VERR_DIR_NOT_EMPTY);
     
    25712573
    25722574            /* Now dirty everything by inverting everything. */
    2573             size_t *puCur  = (size_t *)pbMapping;
    2574             size_t  cbLeft = sizeof(s_abContent);
    2575             while (cbLeft-- > 0)
     2575            size_t *puCur = (size_t *)pbMapping;
     2576            size_t  cLeft = sizeof(s_abContent) / sizeof(*puCur);
     2577            while (cLeft-- > 0)
    25762578            {
    25772579                *puCur = ~*puCur;
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