From b6cc33f452c6e4166773739b13beac3aadbd4e30 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Mon, 28 Nov 2016 13:14:33 +0100 Subject: [PATCH] build: only add dependency for valgrind supported hosts Windows is confused with implicit .exe suffix ie: scons: *** [out\windows\...\utresource\csdk\connectivity\test\catests] \ Explicit dependency ...\utresource\csdk\connectivity\test\catests' \ not found, needed by target \ ... Change-Id: I010eb13f7904cba510e492b73be1caeeb0061edd Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/14849 Reviewed-by: Ziran Sun Tested-by: jenkins-iotivity --- tools/scons/RunTest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scons/RunTest.py b/tools/scons/RunTest.py index 91375e6..f814bd5 100644 --- a/tools/scons/RunTest.py +++ b/tools/scons/RunTest.py @@ -63,6 +63,6 @@ def run_test(env, xml_file, test): # Set up to run the test under Valgrind. test_cmd = '%s valgrind --leak-check=full --suppressions=%s --xml=yes --xml-file=%s %s' % (valgrind_environment, suppression_file, xml_file, test_cmd) - env.Depends('ut' + test , os.path.join(build_dir, test)) + env.Depends('ut' + test , os.path.join(build_dir, test)) ut = env.Command('ut' + test, None, test_cmd) env.AlwaysBuild('ut' + test) -- 2.7.4