OLD | NEW |
1 /* $Id: bitvect_test.c 1892 2007-07-13 20:56:28Z peter $ | 1 /* |
2 * | 2 * |
3 * Copyright (C) 2001-2007 Peter Johnson | 3 * Copyright (C) 2001-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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 failed[0] = '\0'; | 168 failed[0] = '\0'; |
169 printf("Test bitvect_test: "); | 169 printf("Test bitvect_test: "); |
170 nf += runtest(boot, NULL, NULL); | 170 nf += runtest(boot, NULL, NULL); |
171 nf += runtest(oct_small_num, num_family_setup, num_family_teardown); | 171 nf += runtest(oct_small_num, num_family_setup, num_family_teardown); |
172 nf += runtest(oct_large_num, num_family_setup, num_family_teardown); | 172 nf += runtest(oct_large_num, num_family_setup, num_family_teardown); |
173 printf(" +%d-%d/3 %d%%\n%s", | 173 printf(" +%d-%d/3 %d%%\n%s", |
174 3-nf, nf, 100*(3-nf)/3, failed); | 174 3-nf, nf, 100*(3-nf)/3, failed); |
175 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; | 175 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; |
176 } | 176 } |
OLD | NEW |