VirtualBox

Changeset 55083 in vbox for trunk/src/VBox/Storage/testcase


Ignore:
Timestamp:
Apr 1, 2015 10:02:41 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99375
Message:

tstVDIo: Hopefully fix errors on testboxes regarding to deep sub test nesting

Location:
trunk/src/VBox/Storage/testcase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/testcase/BuiltinTests.h

    r52111 r55083  
    2323typedef struct TSTVDIOTESTENTRY
    2424{
     25    /** Test name. */
     26    const char             *pszName;
    2527    /** Pointer to the raw bytes. */
    2628    const unsigned char    *pch;
     
    3234
    3335/** Macro for simplifying generating the trust anchor tables. */
    34 #define TSTVDIOTESTENTRY_GEN(a_abTest)      { &a_abTest[0], sizeof(a_abTest) }
     36#define TSTVDIOTESTENTRY_GEN(a_szName, a_abTest)      { #a_szName, &a_abTest[0], sizeof(a_abTest) }
    3537
    3638/** All tests we know. */
  • trunk/src/VBox/Storage/testcase/Makefile.kmk

    r53844 r55083  
    6666 # 1=name, 2=filter
    6767 TSTVDIO_GEN_TEST_MACRO = 'TSTVDIOTESTENTRY const g_a$(1)[] =' '{' \
    68         $(foreach testnm,$(filter $(2),$(TSTVDIO_BUILTIN_TEST_NAMES)), '    TSTVDIOTESTENTRY_GEN(g_ab$(testnm)),') \
     68        $(foreach testnm,$(filter $(2),$(TSTVDIO_BUILTIN_TEST_NAMES)), '    TSTVDIOTESTENTRY_GEN($(testnm), g_ab$(testnm)),') \
    6969        '};' 'unsigned const g_c$(1) = RT_ELEMENTS(g_a$(1));' '' ''
    7070
  • trunk/src/VBox/Storage/testcase/tstVDIo.cpp

    r52710 r55083  
    972972            tstVDIoTestDestroy(&IoTest);
    973973        }
     974        RTTestSubDone(pGlob->hTest);
    974975    }
    975976
     
    26942695 *
    26952696 * @returns nothing.
     2697 * @param   pszName      The script name.
    26962698 * @param   pszScript    The script to execute.
    26972699 */
    2698 static void tstVDIoScriptExec(const char *pszScript)
     2700static void tstVDIoScriptExec(const char *pszName, const char *pszScript)
    26992701{
    27002702    int rc = VINF_SUCCESS;
     
    27392741    AssertRC(rc);
    27402742
    2741     rc = RTTestCreate("tstVDIo", &GlobTest.hTest);
     2743    rc = RTTestCreate(pszName, &GlobTest.hTest);
    27422744    if (RT_SUCCESS(rc))
    27432745    {
     
    27962798
    27972799        AssertPtr(pszScript);
    2798         tstVDIoScriptExec(pszScript);
     2800        tstVDIoScriptExec(pcszFilename, pszScript);
    27992801        RTStrFree(pszScript);
    28002802    }
     
    28352837
    28362838        AssertPtr(pszScript);
    2837         tstVDIoScriptExec(pszScript);
     2839        tstVDIoScriptExec(g_aVDIoTests[i].pszName, pszScript);
    28382840    }
    28392841#endif
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