1*6a54128fSAndroid Build Coastguard Worker /*
2*6a54128fSAndroid Build Coastguard Worker * This testing program makes sure the bitops functions work
3*6a54128fSAndroid Build Coastguard Worker *
4*6a54128fSAndroid Build Coastguard Worker * Copyright (C) 2001 by Theodore Ts'o.
5*6a54128fSAndroid Build Coastguard Worker *
6*6a54128fSAndroid Build Coastguard Worker * %Begin-Header%
7*6a54128fSAndroid Build Coastguard Worker * This file may be redistributed under the terms of the GNU Library
8*6a54128fSAndroid Build Coastguard Worker * General Public License, version 2.
9*6a54128fSAndroid Build Coastguard Worker * %End-Header%
10*6a54128fSAndroid Build Coastguard Worker */
11*6a54128fSAndroid Build Coastguard Worker
12*6a54128fSAndroid Build Coastguard Worker #include "config.h"
13*6a54128fSAndroid Build Coastguard Worker #include <stdio.h>
14*6a54128fSAndroid Build Coastguard Worker #include <string.h>
15*6a54128fSAndroid Build Coastguard Worker #if HAVE_UNISTD_H
16*6a54128fSAndroid Build Coastguard Worker #include <unistd.h>
17*6a54128fSAndroid Build Coastguard Worker #endif
18*6a54128fSAndroid Build Coastguard Worker #include <fcntl.h>
19*6a54128fSAndroid Build Coastguard Worker #include <time.h>
20*6a54128fSAndroid Build Coastguard Worker #include <sys/stat.h>
21*6a54128fSAndroid Build Coastguard Worker #include <sys/types.h>
22*6a54128fSAndroid Build Coastguard Worker #if HAVE_ERRNO_H
23*6a54128fSAndroid Build Coastguard Worker #include <errno.h>
24*6a54128fSAndroid Build Coastguard Worker #endif
25*6a54128fSAndroid Build Coastguard Worker #include <sys/time.h>
26*6a54128fSAndroid Build Coastguard Worker #include <sys/resource.h>
27*6a54128fSAndroid Build Coastguard Worker
28*6a54128fSAndroid Build Coastguard Worker #include "ext2_fs.h"
29*6a54128fSAndroid Build Coastguard Worker #include "ext2fs.h"
30*6a54128fSAndroid Build Coastguard Worker
31*6a54128fSAndroid Build Coastguard Worker unsigned char bitarray[] = {
32*6a54128fSAndroid Build Coastguard Worker 0x80, 0xF0, 0x40, 0x40, 0x0, 0x0, 0x0, 0x0, 0x10, 0x20, 0x00, 0x00
33*6a54128fSAndroid Build Coastguard Worker };
34*6a54128fSAndroid Build Coastguard Worker
35*6a54128fSAndroid Build Coastguard Worker int bits_list[] = {
36*6a54128fSAndroid Build Coastguard Worker 7, 12, 13, 14,15, 22, 30, 68, 77, -1,
37*6a54128fSAndroid Build Coastguard Worker };
38*6a54128fSAndroid Build Coastguard Worker
39*6a54128fSAndroid Build Coastguard Worker #define BIG_TEST_BIT (((unsigned) 1 << 31) + 42)
40*6a54128fSAndroid Build Coastguard Worker
41*6a54128fSAndroid Build Coastguard Worker
main(int argc,char ** argv)42*6a54128fSAndroid Build Coastguard Worker int main(int argc, char **argv)
43*6a54128fSAndroid Build Coastguard Worker {
44*6a54128fSAndroid Build Coastguard Worker int i, j, size;
45*6a54128fSAndroid Build Coastguard Worker unsigned char testarray[12];
46*6a54128fSAndroid Build Coastguard Worker unsigned char *bigarray;
47*6a54128fSAndroid Build Coastguard Worker
48*6a54128fSAndroid Build Coastguard Worker size = sizeof(bitarray)*8;
49*6a54128fSAndroid Build Coastguard Worker #if 0
50*6a54128fSAndroid Build Coastguard Worker i = ext2fs_find_first_bit_set(bitarray, size);
51*6a54128fSAndroid Build Coastguard Worker while (i < size) {
52*6a54128fSAndroid Build Coastguard Worker printf("Bit set: %d\n", i);
53*6a54128fSAndroid Build Coastguard Worker i = ext2fs_find_next_bit_set(bitarray, size, i+1);
54*6a54128fSAndroid Build Coastguard Worker }
55*6a54128fSAndroid Build Coastguard Worker #endif
56*6a54128fSAndroid Build Coastguard Worker
57*6a54128fSAndroid Build Coastguard Worker /* Test test_bit */
58*6a54128fSAndroid Build Coastguard Worker for (i=0,j=0; i < size; i++) {
59*6a54128fSAndroid Build Coastguard Worker if (ext2fs_test_bit(i, bitarray)) {
60*6a54128fSAndroid Build Coastguard Worker if (bits_list[j] == i) {
61*6a54128fSAndroid Build Coastguard Worker j++;
62*6a54128fSAndroid Build Coastguard Worker } else {
63*6a54128fSAndroid Build Coastguard Worker printf("Bit %d set, not expected\n", i);
64*6a54128fSAndroid Build Coastguard Worker exit(1);
65*6a54128fSAndroid Build Coastguard Worker }
66*6a54128fSAndroid Build Coastguard Worker } else {
67*6a54128fSAndroid Build Coastguard Worker if (bits_list[j] == i) {
68*6a54128fSAndroid Build Coastguard Worker printf("Expected bit %d to be clear.\n", i);
69*6a54128fSAndroid Build Coastguard Worker exit(1);
70*6a54128fSAndroid Build Coastguard Worker }
71*6a54128fSAndroid Build Coastguard Worker }
72*6a54128fSAndroid Build Coastguard Worker }
73*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_test_bit appears to be correct\n");
74*6a54128fSAndroid Build Coastguard Worker
75*6a54128fSAndroid Build Coastguard Worker /* Test ext2fs_set_bit */
76*6a54128fSAndroid Build Coastguard Worker memset(testarray, 0, sizeof(testarray));
77*6a54128fSAndroid Build Coastguard Worker for (i=0; bits_list[i] > 0; i++) {
78*6a54128fSAndroid Build Coastguard Worker ext2fs_set_bit(bits_list[i], testarray);
79*6a54128fSAndroid Build Coastguard Worker }
80*6a54128fSAndroid Build Coastguard Worker if (memcmp(testarray, bitarray, sizeof(testarray)) == 0) {
81*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_set_bit test succeeded.\n");
82*6a54128fSAndroid Build Coastguard Worker } else {
83*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_set_bit test failed.\n");
84*6a54128fSAndroid Build Coastguard Worker for (i=0; i < sizeof(testarray); i++) {
85*6a54128fSAndroid Build Coastguard Worker printf("%02x ", testarray[i]);
86*6a54128fSAndroid Build Coastguard Worker }
87*6a54128fSAndroid Build Coastguard Worker printf("\n");
88*6a54128fSAndroid Build Coastguard Worker exit(1);
89*6a54128fSAndroid Build Coastguard Worker }
90*6a54128fSAndroid Build Coastguard Worker for (i=0; bits_list[i] > 0; i++) {
91*6a54128fSAndroid Build Coastguard Worker ext2fs_clear_bit(bits_list[i], testarray);
92*6a54128fSAndroid Build Coastguard Worker }
93*6a54128fSAndroid Build Coastguard Worker for (i=0; i < sizeof(testarray); i++) {
94*6a54128fSAndroid Build Coastguard Worker if (testarray[i]) {
95*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_clear_bit failed, "
96*6a54128fSAndroid Build Coastguard Worker "testarray[%d] is %d\n", i, testarray[i]);
97*6a54128fSAndroid Build Coastguard Worker exit(1);
98*6a54128fSAndroid Build Coastguard Worker }
99*6a54128fSAndroid Build Coastguard Worker }
100*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_clear_bit test succeed.\n");
101*6a54128fSAndroid Build Coastguard Worker
102*6a54128fSAndroid Build Coastguard Worker
103*6a54128fSAndroid Build Coastguard Worker /* Do bigarray test */
104*6a54128fSAndroid Build Coastguard Worker bigarray = malloc(1 << 29);
105*6a54128fSAndroid Build Coastguard Worker if (!bigarray) {
106*6a54128fSAndroid Build Coastguard Worker fprintf(stderr, "Failed to allocate scratch memory!\n");
107*6a54128fSAndroid Build Coastguard Worker exit(0);
108*6a54128fSAndroid Build Coastguard Worker }
109*6a54128fSAndroid Build Coastguard Worker
110*6a54128fSAndroid Build Coastguard Worker bigarray[BIG_TEST_BIT >> 3] = 0;
111*6a54128fSAndroid Build Coastguard Worker
112*6a54128fSAndroid Build Coastguard Worker ext2fs_set_bit(BIG_TEST_BIT, bigarray);
113*6a54128fSAndroid Build Coastguard Worker printf("big bit number (%u) test: %d, expected %d\n", BIG_TEST_BIT,
114*6a54128fSAndroid Build Coastguard Worker bigarray[BIG_TEST_BIT >> 3], (1 << (BIG_TEST_BIT & 7)));
115*6a54128fSAndroid Build Coastguard Worker if (bigarray[BIG_TEST_BIT >> 3] != (1 << (BIG_TEST_BIT & 7)))
116*6a54128fSAndroid Build Coastguard Worker exit(1);
117*6a54128fSAndroid Build Coastguard Worker
118*6a54128fSAndroid Build Coastguard Worker ext2fs_clear_bit(BIG_TEST_BIT, bigarray);
119*6a54128fSAndroid Build Coastguard Worker
120*6a54128fSAndroid Build Coastguard Worker printf("big bit number (%u) test: %d, expected 0\n", BIG_TEST_BIT,
121*6a54128fSAndroid Build Coastguard Worker bigarray[BIG_TEST_BIT >> 3]);
122*6a54128fSAndroid Build Coastguard Worker if (bigarray[BIG_TEST_BIT >> 3] != 0)
123*6a54128fSAndroid Build Coastguard Worker exit(1);
124*6a54128fSAndroid Build Coastguard Worker
125*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_set_bit big_test successful\n");
126*6a54128fSAndroid Build Coastguard Worker
127*6a54128fSAndroid Build Coastguard Worker
128*6a54128fSAndroid Build Coastguard Worker /* Now test ext2fs_fast_set_bit */
129*6a54128fSAndroid Build Coastguard Worker memset(testarray, 0, sizeof(testarray));
130*6a54128fSAndroid Build Coastguard Worker for (i=0; bits_list[i] > 0; i++) {
131*6a54128fSAndroid Build Coastguard Worker ext2fs_fast_set_bit(bits_list[i], testarray);
132*6a54128fSAndroid Build Coastguard Worker }
133*6a54128fSAndroid Build Coastguard Worker if (memcmp(testarray, bitarray, sizeof(testarray)) == 0) {
134*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_fast_set_bit test succeeded.\n");
135*6a54128fSAndroid Build Coastguard Worker } else {
136*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_fast_set_bit test failed.\n");
137*6a54128fSAndroid Build Coastguard Worker for (i=0; i < sizeof(testarray); i++) {
138*6a54128fSAndroid Build Coastguard Worker printf("%02x ", testarray[i]);
139*6a54128fSAndroid Build Coastguard Worker }
140*6a54128fSAndroid Build Coastguard Worker printf("\n");
141*6a54128fSAndroid Build Coastguard Worker exit(1);
142*6a54128fSAndroid Build Coastguard Worker }
143*6a54128fSAndroid Build Coastguard Worker for (i=0; bits_list[i] > 0; i++) {
144*6a54128fSAndroid Build Coastguard Worker ext2fs_clear_bit(bits_list[i], testarray);
145*6a54128fSAndroid Build Coastguard Worker }
146*6a54128fSAndroid Build Coastguard Worker for (i=0; i < sizeof(testarray); i++) {
147*6a54128fSAndroid Build Coastguard Worker if (testarray[i]) {
148*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_clear_bit failed, "
149*6a54128fSAndroid Build Coastguard Worker "testarray[%d] is %d\n", i, testarray[i]);
150*6a54128fSAndroid Build Coastguard Worker exit(1);
151*6a54128fSAndroid Build Coastguard Worker }
152*6a54128fSAndroid Build Coastguard Worker }
153*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_clear_bit test succeed.\n");
154*6a54128fSAndroid Build Coastguard Worker
155*6a54128fSAndroid Build Coastguard Worker
156*6a54128fSAndroid Build Coastguard Worker bigarray[BIG_TEST_BIT >> 3] = 0;
157*6a54128fSAndroid Build Coastguard Worker
158*6a54128fSAndroid Build Coastguard Worker ext2fs_fast_set_bit(BIG_TEST_BIT, bigarray);
159*6a54128fSAndroid Build Coastguard Worker printf("big bit number (%u) test: %d, expected %d\n", BIG_TEST_BIT,
160*6a54128fSAndroid Build Coastguard Worker bigarray[BIG_TEST_BIT >> 3], (1 << (BIG_TEST_BIT & 7)));
161*6a54128fSAndroid Build Coastguard Worker if (bigarray[BIG_TEST_BIT >> 3] != (1 << (BIG_TEST_BIT & 7)))
162*6a54128fSAndroid Build Coastguard Worker exit(1);
163*6a54128fSAndroid Build Coastguard Worker
164*6a54128fSAndroid Build Coastguard Worker ext2fs_fast_clear_bit(BIG_TEST_BIT, bigarray);
165*6a54128fSAndroid Build Coastguard Worker
166*6a54128fSAndroid Build Coastguard Worker printf("big bit number (%u) test: %d, expected 0\n", BIG_TEST_BIT,
167*6a54128fSAndroid Build Coastguard Worker bigarray[BIG_TEST_BIT >> 3]);
168*6a54128fSAndroid Build Coastguard Worker if (bigarray[BIG_TEST_BIT >> 3] != 0)
169*6a54128fSAndroid Build Coastguard Worker exit(1);
170*6a54128fSAndroid Build Coastguard Worker
171*6a54128fSAndroid Build Coastguard Worker printf("ext2fs_fast_set_bit big_test successful\n");
172*6a54128fSAndroid Build Coastguard Worker
173*6a54128fSAndroid Build Coastguard Worker /* Repeat foregoing tests for 64-bit bitops */
174*6a54128fSAndroid Build Coastguard Worker
175*6a54128fSAndroid Build Coastguard Worker /* Test test_bit */
176*6a54128fSAndroid Build Coastguard Worker for (i=0,j=0; i < size; i++) {
177*6a54128fSAndroid Build Coastguard Worker if (ext2fs_test_bit64(i, bitarray)) {
178*6a54128fSAndroid Build Coastguard Worker if (bits_list[j] == i) {
179*6a54128fSAndroid Build Coastguard Worker j++;
180*6a54128fSAndroid Build Coastguard Worker } else {
181*6a54128fSAndroid Build Coastguard Worker printf("64-bit: Bit %d set, not expected\n",
182*6a54128fSAndroid Build Coastguard Worker i);
183*6a54128fSAndroid Build Coastguard Worker exit(1);
184*6a54128fSAndroid Build Coastguard Worker }
185*6a54128fSAndroid Build Coastguard Worker } else {
186*6a54128fSAndroid Build Coastguard Worker if (bits_list[j] == i) {
187*6a54128fSAndroid Build Coastguard Worker printf("64-bit: "
188*6a54128fSAndroid Build Coastguard Worker "Expected bit %d to be clear.\n", i);
189*6a54128fSAndroid Build Coastguard Worker exit(1);
190*6a54128fSAndroid Build Coastguard Worker }
191*6a54128fSAndroid Build Coastguard Worker }
192*6a54128fSAndroid Build Coastguard Worker }
193*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_test_bit appears to be correct\n");
194*6a54128fSAndroid Build Coastguard Worker
195*6a54128fSAndroid Build Coastguard Worker /* Test ext2fs_set_bit */
196*6a54128fSAndroid Build Coastguard Worker memset(testarray, 0, sizeof(testarray));
197*6a54128fSAndroid Build Coastguard Worker for (i=0; bits_list[i] > 0; i++) {
198*6a54128fSAndroid Build Coastguard Worker ext2fs_set_bit64(bits_list[i], testarray);
199*6a54128fSAndroid Build Coastguard Worker }
200*6a54128fSAndroid Build Coastguard Worker if (memcmp(testarray, bitarray, sizeof(testarray)) == 0) {
201*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_set_bit test succeeded.\n");
202*6a54128fSAndroid Build Coastguard Worker } else {
203*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_set_bit test failed.\n");
204*6a54128fSAndroid Build Coastguard Worker for (i=0; i < sizeof(testarray); i++) {
205*6a54128fSAndroid Build Coastguard Worker printf("%02x ", testarray[i]);
206*6a54128fSAndroid Build Coastguard Worker }
207*6a54128fSAndroid Build Coastguard Worker printf("\n");
208*6a54128fSAndroid Build Coastguard Worker exit(1);
209*6a54128fSAndroid Build Coastguard Worker }
210*6a54128fSAndroid Build Coastguard Worker for (i=0; bits_list[i] > 0; i++) {
211*6a54128fSAndroid Build Coastguard Worker ext2fs_clear_bit64(bits_list[i], testarray);
212*6a54128fSAndroid Build Coastguard Worker }
213*6a54128fSAndroid Build Coastguard Worker for (i=0; i < sizeof(testarray); i++) {
214*6a54128fSAndroid Build Coastguard Worker if (testarray[i]) {
215*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_clear_bit failed, "
216*6a54128fSAndroid Build Coastguard Worker "testarray[%d] is %d\n", i, testarray[i]);
217*6a54128fSAndroid Build Coastguard Worker exit(1);
218*6a54128fSAndroid Build Coastguard Worker }
219*6a54128fSAndroid Build Coastguard Worker }
220*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_clear_bit test succeed.\n");
221*6a54128fSAndroid Build Coastguard Worker
222*6a54128fSAndroid Build Coastguard Worker /* Do bigarray test */
223*6a54128fSAndroid Build Coastguard Worker bigarray[BIG_TEST_BIT >> 3] = 0;
224*6a54128fSAndroid Build Coastguard Worker
225*6a54128fSAndroid Build Coastguard Worker ext2fs_set_bit64(BIG_TEST_BIT, bigarray);
226*6a54128fSAndroid Build Coastguard Worker printf("64-bit: big bit number (%u) test: %d, expected %d\n",
227*6a54128fSAndroid Build Coastguard Worker BIG_TEST_BIT, bigarray[BIG_TEST_BIT >> 3],
228*6a54128fSAndroid Build Coastguard Worker (1 << (BIG_TEST_BIT & 7)));
229*6a54128fSAndroid Build Coastguard Worker if (bigarray[BIG_TEST_BIT >> 3] != (1 << (BIG_TEST_BIT & 7)))
230*6a54128fSAndroid Build Coastguard Worker exit(1);
231*6a54128fSAndroid Build Coastguard Worker
232*6a54128fSAndroid Build Coastguard Worker ext2fs_clear_bit64(BIG_TEST_BIT, bigarray);
233*6a54128fSAndroid Build Coastguard Worker
234*6a54128fSAndroid Build Coastguard Worker printf("64-bit: big bit number (%u) test: %d, expected 0\n",
235*6a54128fSAndroid Build Coastguard Worker BIG_TEST_BIT,
236*6a54128fSAndroid Build Coastguard Worker bigarray[BIG_TEST_BIT >> 3]);
237*6a54128fSAndroid Build Coastguard Worker if (bigarray[BIG_TEST_BIT >> 3] != 0)
238*6a54128fSAndroid Build Coastguard Worker exit(1);
239*6a54128fSAndroid Build Coastguard Worker
240*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_set_bit big_test successful\n");
241*6a54128fSAndroid Build Coastguard Worker
242*6a54128fSAndroid Build Coastguard Worker /* Now test ext2fs_fast_set_bit */
243*6a54128fSAndroid Build Coastguard Worker memset(testarray, 0, sizeof(testarray));
244*6a54128fSAndroid Build Coastguard Worker for (i=0; bits_list[i] > 0; i++) {
245*6a54128fSAndroid Build Coastguard Worker ext2fs_fast_set_bit64(bits_list[i], testarray);
246*6a54128fSAndroid Build Coastguard Worker }
247*6a54128fSAndroid Build Coastguard Worker if (memcmp(testarray, bitarray, sizeof(testarray)) == 0) {
248*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_fast_set_bit test succeeded.\n");
249*6a54128fSAndroid Build Coastguard Worker } else {
250*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_fast_set_bit test failed.\n");
251*6a54128fSAndroid Build Coastguard Worker for (i=0; i < sizeof(testarray); i++) {
252*6a54128fSAndroid Build Coastguard Worker printf("%02x ", testarray[i]);
253*6a54128fSAndroid Build Coastguard Worker }
254*6a54128fSAndroid Build Coastguard Worker printf("\n");
255*6a54128fSAndroid Build Coastguard Worker exit(1);
256*6a54128fSAndroid Build Coastguard Worker }
257*6a54128fSAndroid Build Coastguard Worker for (i=0; bits_list[i] > 0; i++) {
258*6a54128fSAndroid Build Coastguard Worker ext2fs_clear_bit64(bits_list[i], testarray);
259*6a54128fSAndroid Build Coastguard Worker }
260*6a54128fSAndroid Build Coastguard Worker for (i=0; i < sizeof(testarray); i++) {
261*6a54128fSAndroid Build Coastguard Worker if (testarray[i]) {
262*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_clear_bit failed, "
263*6a54128fSAndroid Build Coastguard Worker "testarray[%d] is %d\n", i, testarray[i]);
264*6a54128fSAndroid Build Coastguard Worker exit(1);
265*6a54128fSAndroid Build Coastguard Worker }
266*6a54128fSAndroid Build Coastguard Worker }
267*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_clear_bit test succeed.\n");
268*6a54128fSAndroid Build Coastguard Worker
269*6a54128fSAndroid Build Coastguard Worker bigarray[BIG_TEST_BIT >> 3] = 0;
270*6a54128fSAndroid Build Coastguard Worker
271*6a54128fSAndroid Build Coastguard Worker ext2fs_fast_set_bit64(BIG_TEST_BIT, bigarray);
272*6a54128fSAndroid Build Coastguard Worker printf("64-bit: big bit number (%u) test: %d, expected %d\n",
273*6a54128fSAndroid Build Coastguard Worker BIG_TEST_BIT, bigarray[BIG_TEST_BIT >> 3],
274*6a54128fSAndroid Build Coastguard Worker (1 << (BIG_TEST_BIT & 7)));
275*6a54128fSAndroid Build Coastguard Worker if (bigarray[BIG_TEST_BIT >> 3] != (1 << (BIG_TEST_BIT & 7)))
276*6a54128fSAndroid Build Coastguard Worker exit(1);
277*6a54128fSAndroid Build Coastguard Worker
278*6a54128fSAndroid Build Coastguard Worker ext2fs_fast_clear_bit64(BIG_TEST_BIT, bigarray);
279*6a54128fSAndroid Build Coastguard Worker
280*6a54128fSAndroid Build Coastguard Worker printf("64-bit: big bit number (%u) test: %d, expected 0\n",
281*6a54128fSAndroid Build Coastguard Worker BIG_TEST_BIT, bigarray[BIG_TEST_BIT >> 3]);
282*6a54128fSAndroid Build Coastguard Worker if (bigarray[BIG_TEST_BIT >> 3] != 0)
283*6a54128fSAndroid Build Coastguard Worker exit(1);
284*6a54128fSAndroid Build Coastguard Worker
285*6a54128fSAndroid Build Coastguard Worker printf("64-bit: ext2fs_fast_set_bit big_test successful\n");
286*6a54128fSAndroid Build Coastguard Worker free(bigarray);
287*6a54128fSAndroid Build Coastguard Worker exit(0);
288*6a54128fSAndroid Build Coastguard Worker }
289