summaryrefslogtreecommitdiff
path: root/tests/test-utils.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-11-10 11:38:09 -0500
committerDan Winship <danw@gnome.org>2013-11-10 11:38:09 -0500
commit0152dca6d87b6e737c730e842ba226dbe4de1d86 (patch)
treee5da7aae56ee65f5106818a6513e376195d825eb /tests/test-utils.c
parent4e755ba87e2937ce32c53c2983d4efe8b9121541 (diff)
downloadlibsoup-0152dca6d87b6e737c730e842ba226dbe4de1d86.tar.gz
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.)
Diffstat (limited to 'tests/test-utils.c')
-rw-r--r--tests/test-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-utils.c b/tests/test-utils.c
index 9848d9ba..f4632a9b 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);