VirtualBox

Changeset 401

Show
Ignore:
Timestamp:
01/28/07 05:01:50 (2 years ago)
Author:
vboxsync
Message:

flush stdout before spawning the testcase.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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                     */ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy