VirtualBox

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


Ignore:
Timestamp:
Aug 9, 2012 2:46:49 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79920
Message:

Runtime: RT*CreateTemp testcase, comment.

File:
1 edited

Legend:

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

    r42712 r42713  
    6363        int rc;
    6464        char szName[RTPATH_MAX];
    65         RTFMODE fModeFinal;
    6665        RTTESTI_CHECK_RC(rc = RTPathAppend(strcpy(szName, g_szTempPath), sizeof(szName), pszTemplate), VINF_SUCCESS);
    6766        if (RT_FAILURE(rc))
     
    8281            break;
    8382        }
     83        /* Check that the final permissions are not more permissive than
     84         * the ones requested (less permissive is fine, c.f. umask etc.).
     85         * I mask out the group as I am not sure how we deal with that on
     86         * Windows. */
    8487        RTTESTI_CHECK_RC_OK(rc = RTPathGetMode(papszNames[i], &fModeFinal));
    8588        if (RT_SUCCESS(rc))
    8689        {
    87             fModeFinal &= (RTFS_UNIX_IRWXU | RTFS_UNIX_IRWXO);
     90            RTFMODE fModeFinal &= (RTFS_UNIX_IRWXU | RTFS_UNIX_IRWXO);
    8891            RTTESTI_CHECK_MSG((fModeFinal & ~fMode) == 0,
    8992                              ("%s: szName   %s\nfModeFinal ~= %#o, expected %#o\n",
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