[libsoup/gnome-3-10] test-utils: bump up debug_level when running under "make check"



commit 5000958144e638ac3600f3db535c72c49996daa5
Author: Dan Winship <danw gnome org>
Date:   Sun Nov 10 11:38:09 2013 -0500

    test-utils: bump up debug_level when running under "make check"
    
    Since automake's "make check" rule now logs the output of tests to a
    log file, we might as well use maximum debugging, so that if something
    fails, we have plenty of explanation why.
    
    (We still parallelize parallelizable tests by default though, meaning
    the output is not especially useful for those ones.)

 tests/test-utils.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-utils.c b/tests/test-utils.c
index 9848d9b..f4632a9 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -108,6 +108,9 @@ test_init (int argc, char **argv, GOptionEntry *entries)
        if (debug_level > 0 || http_debug_level > 0)
                parallelize = !parallelize;
 
+       if (g_getenv ("SOUP_TESTS_IN_MAKE_CHECK"))
+               debug_level = G_MAXINT;
+
        /* Exit cleanly on ^C in case we're valgrinding. */
        signal (SIGINT, quit);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]