IOT-1583: Removing /W4 warning from resource/c_common.
[platform/upstream/iotivity.git] / resource / c_common / oic_string / test / SConscript
index 29fbcda..a0e10e2 100644 (file)
 
 import os
 import os.path
+from tools.scons.RunTest import *
+
+Import('test_env')
 
 # SConscript file for Local PKI google tests
-gtest_env = SConscript('#extlibs/gtest/SConscript')
-stringtest_env = gtest_env.Clone()
+stringtest_env = test_env.Clone()
 target_os = stringtest_env.get('TARGET_OS')
 
 ######################################################################
@@ -47,7 +49,6 @@ Alias("test", [stringtests])
 stringtest_env.AppendTarget('test')
 if stringtest_env.get('TEST') == '1':
     if target_os in ['linux', 'windows']:
-                from tools.scons.RunTest import *
                 run_test(stringtest_env,
                          'resource_ccommon_string_test.memcheck',
                          'resource/c_common/oic_string/test/stringtests')