From 6450951d20d05351cb58029007c35bb92014ef26 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Mon, 11 Jan 2016 16:42:03 +0100 Subject: tests: add jp2 test case to pixbuf-threads In case jp2 is supported, add a test to pixbuf-threads for it, since seems is the place where most of the format tests are performed. The image used as a test is the one provided by upstream libjasper. https://bugzilla.gnome.org/show_bug.cgi?id=760474 --- tests/pixbuf-threads.c | 2 ++ tests/test-images/randomly-modified/valid.1.jp2 | Bin 0 -> 1987968 bytes 2 files changed, 2 insertions(+) create mode 100644 tests/test-images/randomly-modified/valid.1.jp2 (limited to 'tests') diff --git a/tests/pixbuf-threads.c b/tests/pixbuf-threads.c index 8ea15a158..0690acd82 100644 --- a/tests/pixbuf-threads.c +++ b/tests/pixbuf-threads.c @@ -88,6 +88,8 @@ test_threads (void) g_thread_pool_push (pool, "valid.1.tga", NULL); if (format_supported ("tiff")) g_thread_pool_push (pool, "valid.1.tiff", NULL); + if (format_supported ("jp2")) + g_thread_pool_push (pool, "valid.1.jp2", NULL); } g_thread_pool_free (pool, FALSE, TRUE); diff --git a/tests/test-images/randomly-modified/valid.1.jp2 b/tests/test-images/randomly-modified/valid.1.jp2 new file mode 100644 index 000000000..5fc8bdb19 Binary files /dev/null and b/tests/test-images/randomly-modified/valid.1.jp2 differ -- cgit v1.2.1