OLD | NEW |
1 /* $Id: combpath_test.c 1892 2007-07-13 20:56:28Z peter $ | 1 /* |
2 * | 2 * |
3 * Copyright (C) 2006-2007 Peter Johnson | 3 * Copyright (C) 2006-2007 Peter Johnson |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
11 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 fflush(stdout); | 130 fflush(stdout); |
131 if (fail) | 131 if (fail) |
132 sprintf(failed, "%s ** F: %s\n", failed, failmsg); | 132 sprintf(failed, "%s ** F: %s\n", failed, failmsg); |
133 nf += fail; | 133 nf += fail; |
134 } | 134 } |
135 | 135 |
136 printf(" +%d-%d/%d %d%%\n%s", | 136 printf(" +%d-%d/%d %d%%\n%s", |
137 numtests-nf, nf, numtests, 100*(numtests-nf)/numtests, failed); | 137 numtests-nf, nf, numtests, 100*(numtests-nf)/numtests, failed); |
138 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; | 138 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; |
139 } | 139 } |
OLD | NEW |