VirtualBox

Changeset 45161 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Mar 25, 2013 11:08:50 AM (12 years ago)
Author:
vboxsync
Message:

tstNtQueryStuff.cpp: Ignore ProcessImageFileNameWin32 and ProcessImageFileMapping if not supported (like on the w2k3/x86 testbox).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/testcase/tstNtQueryStuff.cpp

    r43417 r45161  
    372372                      StrBuf.UniStr.Length, StrBuf.UniStr.Length, StrBuf.UniStr.Buffer);
    373373
    374     /* Process image name (Win32). */
     374    /* Process image name (Win32) - Not available on Windows 2003. */
    375375    RT_ZERO(StrBuf);
    376376    StrBuf.UniStr.Length        = UNICODE_STRING_MAX_CHARS * 2;
     
    381381                                     ProcessImageFileNameWin32,
    382382                                     &StrBuf, sizeof(StrBuf), &cbActual);
    383     RTTESTI_CHECK_MSG(NT_SUCCESS(rcNt), ("rcNt=%#x\n", rcNt));
    384     if (NT_SUCCESS(rcNt))
    385         RTTestIPrintf(RTTESTLVL_ALWAYS, "ProcessImageFileNameWin32: len=%u\n    %.*ls\n",
    386                       StrBuf.UniStr.Length, StrBuf.UniStr.Length, StrBuf.UniStr.Buffer);
    387 
    388     /* Process image mapping. */
     383    if (rcNt != STATUS_INVALID_INFO_CLASS)
     384    {
     385        RTTESTI_CHECK_MSG(NT_SUCCESS(rcNt), ("rcNt=%#x\n", rcNt));
     386        if (NT_SUCCESS(rcNt))
     387            RTTestIPrintf(RTTESTLVL_ALWAYS, "ProcessImageFileNameWin32: len=%u\n    %.*ls\n",
     388                          StrBuf.UniStr.Length, StrBuf.UniStr.Length, StrBuf.UniStr.Buffer);
     389    }
     390    else
     391        RTTestIPrintf(RTTESTLVL_ALWAYS, "ProcessImageFileNameWin32: Not supported (STATUS_INVALID_INFO_CLASS).\n");
     392
     393    /* Process image mapping - Not available on Windows 2003. */
    389394    uPtr = ~(DWORD_PTR)0;
    390395    cbActual = 0;
     
    396401    else if (rcNt == STATUS_OBJECT_TYPE_MISMATCH)
    397402        RTTestIPrintf(RTTESTLVL_ALWAYS, "ProcessImageFileMapping:   rcNt=%#x (STATUS_OBJECT_TYPE_MISMATCH)\n", rcNt);
     403    else if (rcNt == STATUS_INVALID_INFO_CLASS)
     404        RTTestIPrintf(RTTESTLVL_ALWAYS, "ProcessImageFileMapping:   Not supported (STATUS_INVALID_INFO_CLASS).\n");
    398405    else
    399406        RTTestIFailed("ProcessImageFileMapping: rcNt=%#x\n", rcNt);
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