X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXAO%2Ftests%2FTestUtils.hxx;h=a5c8ff8780874ad7e05478578a019826d1a82c33;hb=d5c7ad3c50f89a2ddc2de1866ffb7f09397f3be2;hp=1661cc0bb777c9e39419486e8aada407a56f0b05;hpb=8a586f4d9d7eb6830c3fa8952c099a79349cf623;p=modules%2Fshaper.git diff --git a/src/XAO/tests/TestUtils.hxx b/src/XAO/tests/TestUtils.hxx index 1661cc0bb..a5c8ff878 100644 --- a/src/XAO/tests/TestUtils.hxx +++ b/src/XAO/tests/TestUtils.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2013-2019 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -28,11 +28,10 @@ namespace XAO class TestUtils { public: - static std::string getTestFilePath(const std::string& fileName) + static std::string getTestFilePath(const std::string& filePath) { - std::string dataDir = getenv("GEOM_SRC_DIR"); - dataDir += "/src/XAO/tests/data/"; - dataDir += fileName; + std::string dataDir = getenv("DATA_DIR"); + dataDir += filePath; return dataDir; }