VirtualBox

Changeset 401 in vbox for trunk


Ignore:
Timestamp:
Jan 28, 2007 4:01:50 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17972
Message:

flush stdout before spawning the testcase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/testcase/tstRunTestcases.cpp

    r189 r401  
    4444static unsigned     g_cSkipped = 0;
    4545/** The exclude list. */
    46 static const char  *g_apszExclude[] = 
     46static const char  *g_apszExclude[] =
    4747{
    4848#if 1 // slow stuff
    4949    "testcase/tstFile",
    5050    "testcase/tstAvl",
    51 #endif 
     51#endif
    5252    "testcase/tstFileLock",
    5353    "testcase/tstCritSect",
     
    8181
    8282/**
    83  * Checks if a testcase is include or should be skipped. 
    84  * 
     83 * Checks if a testcase is include or should be skipped.
     84 *
    8585 * @param pszTestcase   The testcase (filename).
    86  * 
    87  * @return  true if the testcase is included. 
     86 *
     87 * @return  true if the testcase is included.
    8888 *          false if the testcase should be skipped.
    8989 */
     
    113113/**
    114114 * Process the testcases found in the filter.
    115  * 
    116  * @param   pszFilter   The filter (winnt) to pass to RTDirOpenFiltered for 
     115 *
     116 * @param   pszFilter   The filter (winnt) to pass to RTDirOpenFiltered for
    117117 *                      selecting the testcases.
    118118 * @param   pszDir      The directory we're processing.
     
    120120static void Process(const char *pszFilter, const char *pszDir)
    121121{
    122     /*                                                                                                                                     
     122    /*
    123123     * Open and enumerate the directory.
    124124     */
     
    140140            }
    141141
    142             /*                                                                                                                             
     142            /*
    143143             * Construct the testcase name.
    144144             */
     
    153153            if (IsTestcaseIncluded(pszTestcase))
    154154            {
    155                 /*                                                                                                                             
     155                /*
    156156                 * Execute the testcase.
    157157                 */
    158                 RTPrintf("*** %s: Executing...\n", pszTestcase);
     158                RTPrintf("*** %s: Executing...\n", pszTestcase);  RTStrmFlush(g_pStdOut);
    159159                const char *papszArgs[2];
    160160                papszArgs[0] = pszTestcase;
     
    164164                if (RT_SUCCESS(rc))
    165165                {
    166                     /* 
    167                      * Wait for the process and collect it's return code. 
     166                    /*
     167                     * Wait for the process and collect it's return code.
    168168                     * If it takes too long, we'll terminate it and continue.
    169169                     */
     
    189189                    }
    190190
    191                     /*                                                                                                                     
     191                    /*
    192192                     * Examin the exit status.
    193193                     */
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