Mercurial > projects > ldc
comparison tests/makewebstatistics.d @ 1127:3e98925bcc39
Fix makewebstatistics: don't try to drop a test multiple times.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Fri, 20 Mar 2009 15:47:42 +0100 |
parents | 6aaa3d3c1183 |
children |
comparison
equal
deleted
inserted
replaced
1126:899a2d90645b | 1127:3e98925bcc39 |
---|---|
224 FStime caseTime = getFStime(testRoot~std.path.sep~source); | 224 FStime caseTime = getFStime(testRoot~std.path.sep~source); |
225 if(caseTime > recordTime){ | 225 if(caseTime > recordTime){ |
226 debug(drop) fwritefln(stderr, "dropped: %s", source); | 226 debug(drop) fwritefln(stderr, "dropped: %s", source); |
227 counts[tests[source].r & Result.BASE_MASK]--; | 227 counts[tests[source].r & Result.BASE_MASK]--; |
228 tests.remove(source); | 228 tests.remove(source); |
229 continue; | |
229 } | 230 } |
230 }catch(Exception e){ | 231 }catch(Exception e){ |
231 debug(drop) fwritefln(stderr, "dropped: %s", source); | 232 debug(drop) fwritefln(stderr, "dropped: %s", source); |
232 counts[tests[source].r & Result.BASE_MASK]--; | 233 counts[tests[source].r & Result.BASE_MASK]--; |
233 tests.remove(source); | 234 tests.remove(source); |
235 continue; | |
234 } | 236 } |
235 } | 237 } |
236 // asm-filter | 238 // asm-filter |
237 int i = find(source, "asm_p"); | 239 int i = find(source, "asm_p"); |
238 if(i >= 0){ | 240 if(i >= 0){ |
239 counts[tests[source].r & Result.BASE_MASK]--; | 241 counts[tests[source].r & Result.BASE_MASK]--; |
240 tests.remove(source); | 242 tests.remove(source); |
243 continue; | |
241 } | 244 } |
242 } | 245 } |
243 tests.rehash; | 246 tests.rehash; |
244 | 247 |
245 writefln("dropped %s outdated tests (%s remaining)", totalCount - tests.length, tests.length); | 248 writefln("dropped %s outdated tests (%s remaining)", totalCount - tests.length, tests.length); |