facf0c92e0
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
41 lines
785 B
C
41 lines
785 B
C
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
#include <stdlib.h>
|
|
|
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
|
|
|
static void
|
|
test_animation (const gchar *filename)
|
|
{
|
|
GError *error = NULL;
|
|
GdkPixbufAnimation* result = NULL;
|
|
|
|
result = gdk_pixbuf_animation_new_from_file (g_test_get_filename (G_TEST_DIST, filename, NULL), &error);
|
|
g_assert_no_error (error);
|
|
g_assert (result != NULL);
|
|
|
|
g_object_unref (result);
|
|
}
|
|
|
|
static void
|
|
test_gif_animation (void)
|
|
{
|
|
test_animation ("test-animation.gif");
|
|
}
|
|
|
|
static void
|
|
test_ani_animation (void)
|
|
{
|
|
test_animation ("test-animation.ani");
|
|
}
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
g_test_init (&argc, &argv, NULL);
|
|
|
|
g_test_add_func ("/animation/gif", test_gif_animation);
|
|
g_test_add_func ("/animation/ani", test_ani_animation);
|
|
|
|
return g_test_run ();
|
|
}
|