Skip to content

Commit

Permalink
Find absolute path for test binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Bell committed Mar 13, 2014
1 parent 61da8b2 commit 699b7a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/Support.cpp
Expand Up @@ -142,9 +142,9 @@ std::string Support::temppath(const std::string& file)

std::string Support::binpath()
{
const std::string argv0 = boost::unit_test::framework::master_test_suite().argv[0];
const std::string s = pdal::FileUtils::getDirectory(argv0);
return s;
std::string argv0 = boost::unit_test::framework::master_test_suite().argv[0];
std::string path = pdal::FileUtils::toAbsolutePath(argv0);
return pdal::FileUtils::getDirectory(path);
}


Expand Down

0 comments on commit 699b7a3

Please sign in to comment.