[gegl] If the test name contains "broken" the test is allowed to fail
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] If the test name contains "broken" the test is allowed to fail
- Date: Sat, 20 Mar 2010 19:17:48 +0000 (UTC)
commit d8a4ef6d1a448909a252e5a1dbddc9c99a8691bc
Author: �yvind Kolås <pippin gimp org>
Date: Sat Mar 20 18:38:58 2010 +0000
If the test name contains "broken" the test is allowed to fail
tools/img_cmp.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/tools/img_cmp.c b/tools/img_cmp.c
index f505cd0..f72af1e 100644
--- a/tools/img_cmp.c
+++ b/tools/img_cmp.c
@@ -153,7 +153,8 @@ main (gint argc,
max_diff,
diffsum/wrong_pixels,
diffsum/pixels);
- if (max_diff > 1.5)
+ if (max_diff > 1.5 &&
+ !strstr (argv[2], "broken"))
{
GeglNode *graph, *sink;
gchar *debug_path = g_malloc (strlen (argv[2])+16);
@@ -165,6 +166,10 @@ main (gint argc,
gegl_node_process (sink);
return 1;
}
+ if (strstr (argv[2], "broken"))
+ g_print ("because the test is expected to fail ");
+ else
+ g_print ("because the erorr is small ");
g_print ("we'll say ");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]