cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ac5f11ed1fc80b4521bad3028f1d3ab9f341209a

commit ac5f11ed1fc80b4521bad3028f1d3ab9f341209a
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Mar 13 11:57:49 2018 -0400

    tests: disable elm glview tests when running in buffer engine
    
    Signed-off-by: Mike Blumenkrantz <zm...@osg.samsung.com>
---
 src/tests/elementary/elm_suite.c       | 2 ++
 src/tests/elementary/elm_test_glview.c | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/src/tests/elementary/elm_suite.c b/src/tests/elementary/elm_suite.c
index cd0e3f4b43..e57e118675 100644
--- a/src/tests/elementary/elm_suite.c
+++ b/src/tests/elementary/elm_suite.c
@@ -101,6 +101,8 @@ main(int argc, char **argv)
 #endif
    if (!getenv("ELM_ENGINE"))
      putenv("ELM_ENGINE=buffer");
+   if (eina_streq(getenv("ELM_ENGINE"), "buffer"))
+     putenv("TESTS_GL_DISABLED=1");
 
    failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
                                            "Elementary", etc);
diff --git a/src/tests/elementary/elm_test_glview.c 
b/src/tests/elementary/elm_test_glview.c
index 648072f809..c666757238 100644
--- a/src/tests/elementary/elm_test_glview.c
+++ b/src/tests/elementary/elm_test_glview.c
@@ -56,6 +56,11 @@ END_TEST
 
 void elm_test_glview(TCase *tc)
 {
+   if (getenv("TESTS_GL_DISABLED"))
+     {
+        fprintf(stdout, "glview tests disabled in buffer engine\n");
+        return;
+     }
    tcase_add_test(tc, elm_glview_legacy_type_check);
    tcase_add_test(tc, elm_atspi_role_get);
 }

-- 


Reply via email to