- Timestamp:
- Jan 28, 2007 4:01:50 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 17972
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/testcase/tstRunTestcases.cpp
r189 r401 44 44 static unsigned g_cSkipped = 0; 45 45 /** The exclude list. */ 46 static const char *g_apszExclude[] = 46 static const char *g_apszExclude[] = 47 47 { 48 48 #if 1 // slow stuff 49 49 "testcase/tstFile", 50 50 "testcase/tstAvl", 51 #endif 51 #endif 52 52 "testcase/tstFileLock", 53 53 "testcase/tstCritSect", … … 81 81 82 82 /** 83 * Checks if a testcase is include or should be skipped. 84 * 83 * Checks if a testcase is include or should be skipped. 84 * 85 85 * @param pszTestcase The testcase (filename). 86 * 87 * @return true if the testcase is included. 86 * 87 * @return true if the testcase is included. 88 88 * false if the testcase should be skipped. 89 89 */ … … 113 113 /** 114 114 * 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 117 117 * selecting the testcases. 118 118 * @param pszDir The directory we're processing. … … 120 120 static void Process(const char *pszFilter, const char *pszDir) 121 121 { 122 /* 122 /* 123 123 * Open and enumerate the directory. 124 124 */ … … 140 140 } 141 141 142 /* 142 /* 143 143 * Construct the testcase name. 144 144 */ … … 153 153 if (IsTestcaseIncluded(pszTestcase)) 154 154 { 155 /* 155 /* 156 156 * Execute the testcase. 157 157 */ 158 RTPrintf("*** %s: Executing...\n", pszTestcase); 158 RTPrintf("*** %s: Executing...\n", pszTestcase); RTStrmFlush(g_pStdOut); 159 159 const char *papszArgs[2]; 160 160 papszArgs[0] = pszTestcase; … … 164 164 if (RT_SUCCESS(rc)) 165 165 { 166 /* 167 * Wait for the process and collect it's return code. 166 /* 167 * Wait for the process and collect it's return code. 168 168 * If it takes too long, we'll terminate it and continue. 169 169 */ … … 189 189 } 190 190 191 /* 191 /* 192 192 * Examin the exit status. 193 193 */
Note:
See TracChangeset
for help on using the changeset viewer.