From: Philippe Coval Date: Wed, 30 Nov 2016 08:35:31 +0000 (+0100) Subject: build: Fix easy-setup unittests X-Git-Tag: 1.2.1~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47f52b3977fd9c78f549abc0683e8fadc840cac0;p=platform%2Fupstream%2Fiotivity.git build: Fix easy-setup unittests Need to add a parameter to enable valgrind check Without this change, a race condition may occur and complain like: service/easy-setup/enrollee/unittests/easysetup_enrollee_test: not found Bug: https://jira.iotivity.org/browse/IOT-1526 Change-Id: If927c9a2f6e00b18ab92664f014f4f85f34209aa Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/14957 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi --- diff --git a/service/easy-setup/enrollee/unittests/SConscript b/service/easy-setup/enrollee/unittests/SConscript index cee6dd049..cf695f860 100644 --- a/service/easy-setup/enrollee/unittests/SConscript +++ b/service/easy-setup/enrollee/unittests/SConscript @@ -22,6 +22,7 @@ # Notification Unit Test build script ## +from tools.scons.RunTest import run_test; Import('env') if env.get('RELEASE'): @@ -87,6 +88,7 @@ Alias("easysetup_enrollee_test", easysetup_enrollee_test) env.AppendTarget('easysetup_enrollee_test') if env.get('TEST') == '1': - if target_os == 'linux': - from tools.scons.RunTest import * - run_test(easysetup_enrollee_test_env, '', 'service/easy-setup/enrollee/unittests/easysetup_enrollee_test') + if target_os in ['linux']: + run_test(easysetup_enrollee_test_env, + 'service_easy-setup_enrollee_unittests_easysetup_enrollee_test.memcheck', + 'service/easy-setup/enrollee/unittests/easysetup_enrollee_test')