IOT-1583: Removing /W4 warning from resource/c_common.
[platform/upstream/iotivity.git] / resource / c_common / ocrandom / test / SConscript
index 97fc151..f9a0703 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')
-randomtest_env = gtest_env.Clone()
+randomtest_env = test_env.Clone()
 target_os = randomtest_env.get('TARGET_OS')
 
 ######################################################################
@@ -64,7 +66,6 @@ Alias("test", [randomtests])
 randomtest_env.AppendTarget('test')
 if randomtest_env.get('TEST') == '1':
        if target_os in ['linux', 'windows']:
-                from tools.scons.RunTest import *
                 run_test(randomtest_env,
                          'resource_csdk_random_test.memcheck',
                          'resource/c_common/ocrandom/test/randomtests')