[gdk-pixbuf] tests: Don't run memory-exhausting tests by default
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] tests: Don't run memory-exhausting tests by default
- Date: Sat, 30 Jan 2016 15:25:54 +0000 (UTC)
commit aba0b85ae31406fc6829312412ce177d74e00e62
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 30 10:18:55 2016 -0500
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).
tests/pixbuf-scale.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/tests/pixbuf-scale.c b/tests/pixbuf-scale.c
index aa2180c..239fa44 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 ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]