From 24dda0c3d487cc78bef0b3251868f0f91dde9f86 Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 30 Oct 2017 10:05:07 +0300 Subject: [PATCH] reference data path is moved to main --- src/HYDRO_tests/test_HYDROData_CalcCase.cxx | 4 +--- src/HYDRO_tests/test_HYDROData_Main.cxx | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HYDRO_tests/test_HYDROData_CalcCase.cxx b/src/HYDRO_tests/test_HYDROData_CalcCase.cxx index 1d4b877c..2719ca7b 100644 --- a/src/HYDRO_tests/test_HYDROData_CalcCase.cxx +++ b/src/HYDRO_tests/test_HYDROData_CalcCase.cxx @@ -33,9 +33,7 @@ #include #include - -QString REF_DATA_PATH = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test/HYDRO"; - +extern QString REF_DATA_PATH; void test_HYDROData_CalcCase::test_add_int_wires() { diff --git a/src/HYDRO_tests/test_HYDROData_Main.cxx b/src/HYDRO_tests/test_HYDROData_Main.cxx index 96072a1b..3b4d053f 100644 --- a/src/HYDRO_tests/test_HYDROData_Main.cxx +++ b/src/HYDRO_tests/test_HYDROData_Main.cxx @@ -33,6 +33,8 @@ #define _DEVDEBUG_ #include "HYDRO_trace.hxx" +QString REF_DATA_PATH = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test/HYDRO"; + int main( int argc, char* argv[] ) { QApplication anApp( argc, argv ); -- 2.39.2