+/*
+ * Image Library -- Simple automatic tests
+ *
+ * (c) 2006 Pavel Charvat <pchar@ucw.cz>
+ *
+ * This software may be freely distributed and used according to the terms
+ * of the GNU Lesser General Public License.
+ */
+
#undef LOCAL_DEBUG
#include "lib/lib.h"
uns format = 0;
while (!format)
{
- switch (random_max(2))
+ switch (random_max(3))
{
case 0:
#if defined(CONFIG_IMAGES_LIBJPEG) || defined(CONFIG_IMAGES_LIBMAGICK)
case 1:
#if defined(CONFIG_IMAGES_LIBPNG) || defined(CONFIG_IMAGES_LIBMAGICK)
format = IMAGE_FORMAT_PNG;
+#endif
+ break;
+ case 2:
+#if defined(CONFIG_IMAGES_LIBMAGICK)
+ format = IMAGE_FORMAT_GIF;
#endif
break;
default:
die("Invalid parameter");
srandom(time(NULL) ^ getpid());
-
+
if (want_image_iface)
test_image_iface();
if (want_threads)
test_threads();
-
+
return 0;
}