From 6df93e915bf422a7c1378a46e2aee7512bc5b20b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 22 Apr 2011 21:13:18 +0000 Subject: Fix compilation with unit tests enabled. git-svn-id: http://svn.drobilla.net/sord/trunk@79 3d64ff67-21c5-427c-a301-fe4f08042e5a --- wscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 9e179c4..34d19e5 100644 --- a/wscript +++ b/wscript @@ -57,8 +57,8 @@ def configure(conf): autowaf.define(conf, 'SORD_VERSION', SORD_VERSION) conf.write_config_header('sord-config.h', remove=False) - autowaf.display_msg(conf, "Utilities", str(conf.env['BUILD_UTILS'])) - autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS'])) + autowaf.display_msg(conf, "Utilities", bool(conf.env['BUILD_UTILS'])) + autowaf.display_msg(conf, "Unit tests", bool(conf.env['BUILD_TESTS'])) autowaf.display_msg(conf, "Debug dumping", dump) print('') @@ -86,7 +86,7 @@ def build(bld): autowaf.use_lib(bld, obj, 'GLIB SERD') if bld.env['BUILD_TESTS']: - test_cflags = [ '-fprofile-arcs', '-ftest-coverage' ], + test_cflags = [ '-fprofile-arcs', '-ftest-coverage' ] # Static library (for unit test code coverage) obj = bld(features = 'c cstlib', @@ -142,5 +142,5 @@ def upload_docs(ctx): def test(ctx): autowaf.pre_test(ctx, APPNAME) - autowaf.run_tests(ctx, APPNAME, ['./sord_test']) + autowaf.run_tests(ctx, APPNAME, ['sord_test']) autowaf.post_test(ctx, APPNAME) -- cgit v1.2.1