OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 #include "cgpt_test.h" | 6 #include "cgptlib_test.h" |
7 #include <string.h> | 7 #include <string.h> |
8 #include "cgpt.h" | 8 #include "cgptlib.h" |
9 #include "cgpt_internal.h" | 9 #include "cgptlib_internal.h" |
10 #include "crc32.h" | 10 #include "crc32.h" |
11 #include "gpt.h" | 11 #include "gpt.h" |
12 #include "quick_sort_test.h" | 12 #include "quick_sort_test.h" |
13 #include "utility.h" | 13 #include "utility.h" |
14 | 14 |
15 /* Testing partition layout (sector_bytes=512) | 15 /* Testing partition layout (sector_bytes=512) |
16 * | 16 * |
17 * LBA Size Usage | 17 * LBA Size Usage |
18 * --------------------------------------------------------- | 18 * --------------------------------------------------------- |
19 * 0 1 PMBR | 19 * 0 1 PMBR |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 printf(COL_RED "The following %d test cases are failed:\n" COL_STOP, | 1169 printf(COL_RED "The following %d test cases are failed:\n" COL_STOP, |
1170 error_count); | 1170 error_count); |
1171 for (i = 0; i < sizeof(test_cases)/sizeof(test_cases[0]); ++i) { | 1171 for (i = 0; i < sizeof(test_cases)/sizeof(test_cases[0]); ++i) { |
1172 if (test_cases[i].retval) | 1172 if (test_cases[i].retval) |
1173 printf(" %s()\n", test_cases[i].name); | 1173 printf(" %s()\n", test_cases[i].name); |
1174 } | 1174 } |
1175 } | 1175 } |
1176 | 1176 |
1177 return (error_count) ? 1 : 0; | 1177 return (error_count) ? 1 : 0; |
1178 } | 1178 } |
OLD | NEW |