move the tests under the debug folder
[AROS.git] / debug / test / graphics / allocbitmap.c
blob556e3aa31479caacbfafe190145a711895ee1a4b
1 /*
2 Copyright © 2016-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/debug.h>
7 #include <proto/graphics.h>
9 int main(int argc, char **argv)
11 struct BitMap *bitmap = NULL;
12 ULONG flags = BMF_CLEAR | BMF_MINPLANES;
13 UBYTE depth;
15 for (depth = 1; depth < 33; depth ++)
17 if ((depth > 8) &&
18 ((depth != 15) || (depth != 16) || (depth != 24) || (depth != 32)))
19 continue;
21 if ((bitmap = AllocBitMap((44 << 3), 220, depth, flags, NULL )) != NULL)
23 bug("%dbit BitMap @ 0x%p\n", depth, bitmap);
24 FreeBitMap(bitmap);
25 bug("Freed\n");
27 else
29 bug("Failed to allocate %dbit BitMap\n", depth);
32 return 0;