summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-01-30 10:18:55 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-01-30 10:25:43 -0500
commitaba0b85ae31406fc6829312412ce177d74e00e62 (patch)
tree7fdc4f7ce920f28022ef401af7825748985ddcf9
parent58cce1ed3c09ed4d716b70ec4f75408ec60e1920 (diff)
downloadgdk-pixbuf-aba0b85ae31406fc6829312412ce177d74e00e62.tar.gz
tests: Don't run memory-exhausting tests by default
These tests check for memory overflow in various internal allocations, and require giant amounts of address space. In continuous' vm, they trigger the oom killer. Since this is undesirable, only run the tests in slow mode (ie with -m slow).
-rw-r--r--tests/pixbuf-scale.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/pixbuf-scale.c b/tests/pixbuf-scale.c
index aa2180c76..239fa4490 100644
--- a/tests/pixbuf-scale.c
+++ b/tests/pixbuf-scale.c
@@ -181,10 +181,13 @@ main (int argc, char **argv)
g_test_add_data_func ("/pixbuf/scale/tga", "test-images/randomly-modified/valid.1.tga", test_scale);
g_test_add_data_func ("/pixbuf/scale/xpm", "test-images/randomly-modified/valid.1.xpm", test_scale);
g_test_add_data_func ("/pixbuf/scale/xbm", "test-images/randomly-modified/valid.1.xbm", test_scale);
- g_test_add_data_func ("/pixbuf/scale/png/large", "large.png", test_scale_down);
- g_test_add_data_func ("/pixbuf/scale/jpeg/large", "large.jpg", test_scale_down);
- g_test_add_data_func ("/pixbuf/add-alpha/large", "large.png", test_add_alpha);
- g_test_add_data_func ("/pixbuf/rotate/large", "large.png", test_rotate);
+ if (g_test_slow ())
+ {
+ g_test_add_data_func ("/pixbuf/scale/png/large", "large.png", test_scale_down);
+ g_test_add_data_func ("/pixbuf/scale/jpeg/large", "large.jpg", test_scale_down);
+ g_test_add_data_func ("/pixbuf/add-alpha/large", "large.png", test_add_alpha);
+ g_test_add_data_func ("/pixbuf/rotate/large", "large.png", test_rotate);
+ }
return g_test_run ();
}