summaryrefslogtreecommitdiffstats
path: root/Source/cmTest.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-16 14:42:40 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-16 14:42:40 (GMT)
commit606e6ff9cd2d1ab6a242a38e0c3f6df7167fdff8 (patch)
tree91610453e4195269742ff173dda93e53c8e19e3d /Source/cmTest.h
parent66d69f864ae880f556debf02e66dee4855b0f2df (diff)
downloadCMake-606e6ff9cd2d1ab6a242a38e0c3f6df7167fdff8.zip
CMake-606e6ff9cd2d1ab6a242a38e0c3f6df7167fdff8.tar.gz
CMake-606e6ff9cd2d1ab6a242a38e0c3f6df7167fdff8.tar.bz2
ENH: Refactor storage of test command lines
We used to separate the command executable from its argument vector. It is simpler to just store the whole command line in one vector.
Diffstat (limited to 'Source/cmTest.h')
-rw-r--r--Source/cmTest.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/cmTest.h b/Source/cmTest.h
index d4945db..521981d 100644
--- a/Source/cmTest.h
+++ b/Source/cmTest.h
@@ -37,12 +37,11 @@ public:
///! Set the test name
void SetName(const char* name);
const char* GetName() const { return this->Name.c_str(); }
- void SetCommand(const char* command);
- const char* GetCommand() const { return this->Command.c_str(); }
- void SetArguments(const std::vector<cmStdString>& args);
- const std::vector<cmStdString>& GetArguments() const
+
+ void SetCommand(std::vector<std::string> const& command);
+ std::vector<std::string> const& GetCommand() const
{
- return this->Args;
+ return this->Command;
}
/**
@@ -67,8 +66,7 @@ public:
private:
cmPropertyMap Properties;
cmStdString Name;
- cmStdString Command;
- std::vector<cmStdString> Args;
+ std::vector<std::string> Command;
// The cmMakefile instance that owns this target. This should
// always be set.