• R/O
  • SSH
  • HTTPS

cstl: Commit


Commit MetaInfo

Revision402 (tree)
Time2010-08-11 13:54:24
Authorkatono

Log Message

(empty log message)

Change Summary

Incremental Difference

--- branches/try-vfunc/unittest/UnitTest.c (revision 401)
+++ branches/try-vfunc/unittest/UnitTest.c (revision 402)
@@ -156,13 +156,10 @@
156156 int i;
157157 for (i = 0; cases[i].name != 0; i++) {
158158 if (strcmp(cases[i].name, input_str) == 0) {
159- break;
159+ return i;
160160 }
161161 }
162- if (cases[i].name == 0) {
163- return -1;
164- }
165- return i;
162+ return -1;
166163 }
167164
168165 static int get_ncases(const TestCase *cases)
@@ -210,13 +207,10 @@
210207 int i;
211208 for (i = 0; suites[i].name != 0; i++) {
212209 if (strcmp(suites[i].name, input_str) == 0) {
213- break;
210+ return i;
214211 }
215212 }
216- if (suites[i].name == 0) {
217- return -1;
218- }
219- return i;
213+ return -1;
220214 }
221215
222216 static int get_nsuites(const TestSuite *suites)
Show on old repository browser