Commit 90ee95d5 authored by Dave Moxey's avatar Dave Moxey

Fixed bug with executable name and debug mode.

parent d9ab7738
......@@ -66,9 +66,13 @@ namespace Nektar
return m_description;
}
const std::string& TestData::GetExecutable() const
const std::string TestData::GetExecutable() const
{
return m_executable;
std::string execname = m_executable;
#if !defined(NDEBUG)
execname += "-g";
#endif
return execname;
}
const std::string& TestData::GetParameters() const
......
......@@ -60,7 +60,7 @@ namespace Nektar
TestData(const TestData& pSrc);
const std::string& GetDescription() const;
const std::string& GetExecutable() const;
const std::string GetExecutable() const;
const std::string& GetParameters() const;
const unsigned int& GetNProcesses() const;
......
......@@ -218,11 +218,7 @@ int main(int argc, char *argv[])
}
command += PortablePath(execPath);
#if defined(NDEBUG)
command += " ";
#else
command += "-g ";
#endif
command += file.GetParameters();
command += " 1>output.out 2>output.err";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment