 |
Changeset 2103
- Timestamp:
- 04/21/07 03:15:34
(2 years ago)
- Author:
- Gregor
- Message:
patches/ImprovedUnitTests.diff: Oops, accidentally committed this with patches/ImprovedUnitTests.diff in the patch.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2102 |
r2103 |
|
| 188 | 188 | |
|---|
| 189 | 189 | //////////////////////////////////////////////////////////////////////////////// |
|---|
| 190 | | Index: patches/ImprovedUnitTests.diff |
|---|
| 191 | | =================================================================== |
|---|
| 192 | | --- patches/ImprovedUnitTests.diff (revision 2101) |
|---|
| 193 | | +++ patches/ImprovedUnitTests.diff (working copy) |
|---|
| 194 | | @@ -21,7 +21,7 @@ |
|---|
| 195 | | debug(PRINTF) printf("_moduleUnitTests()\n"); |
|---|
| 196 | | for (uint i = 0; i < _moduleinfo_array.length; i++) |
|---|
| 197 | | { |
|---|
| 198 | | -@@ -1086,9 +1089,23 @@ |
|---|
| 199 | | +@@ -1086,9 +1089,26 @@ |
|---|
| 200 | | debug(PRINTF) printf("\tmodule[%d] = '%.*s'\n", i, m.name); |
|---|
| 201 | | if (m.unitTest) |
|---|
| 202 | | { |
|---|
| 203 | | @@ -41,7 +41,10 @@ |
|---|
| 204 | | + { |
|---|
| 205 | | + printf("TESTS: %d PASSED: %d FAILED: %d\n", |
|---|
| 206 | | + testCount, testCount - testFail, testFail); |
|---|
| 207 | | -+ exit(1); |
|---|
| 208 | | ++ if (testFail == 0) |
|---|
| 209 | | ++ exit(0); |
|---|
| 210 | | ++ else |
|---|
| 211 | | ++ exit(1); |
|---|
| 212 | | + } |
|---|
| 213 | | } |
|---|
| 214 | | |
|---|
| 215 | | @@ -156,7 +159,7 @@ |
|---|
| 216 | | debug(PRINTF) printf("_moduleUnitTests()\n"); |
|---|
| 217 | | for (uint i = 0; i < _moduleinfo_array.length; i++) |
|---|
| 218 | | { |
|---|
| 219 | | -@@ -1070,9 +1073,23 @@ |
|---|
| 220 | | +@@ -1070,9 +1073,26 @@ |
|---|
| 221 | | debug(PRINTF) printf("\tmodule[%d] = '%.*s'\n", i, m.name); |
|---|
| 222 | | if (m.unitTest) |
|---|
| 223 | | { |
|---|
| 224 | | @@ -176,7 +179,10 @@ |
|---|
| 225 | | + { |
|---|
| 226 | | + printf("TESTS: %d PASSED: %d FAILED: %d\n", |
|---|
| 227 | | + testCount, testCount - testFail, testFail); |
|---|
| 228 | | -+ exit(1); |
|---|
| 229 | | ++ if (testFail == 0) |
|---|
| 230 | | ++ exit(0); |
|---|
| 231 | | ++ else |
|---|
| 232 | | ++ exit(1); |
|---|
| 233 | | + } |
|---|
| 234 | | } |
|---|
| 235 | | |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic