test: ignore empty CLIENT_TEST_SOURCES
Running with no sources leads to exception later on and isn't intended; it makes more sense to treat an empty env var like an unset one and use the default source list. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
This commit is contained in:
parent
1bf4ce81b1
commit
749a889bf2
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ public:
|
|||
/* check sources */
|
||||
const char *sourcelist = getenv("CLIENT_TEST_SOURCES");
|
||||
set<string> sources;
|
||||
if (sourcelist) {
|
||||
if (sourcelist && sourcelist[0]) {
|
||||
boost::split(sources, sourcelist, boost::is_any_of(","));
|
||||
} else {
|
||||
BOOST_FOREACH(const RegisterSyncSourceTest *test, m_configs) {
|
||||
|
|
Loading…
Reference in a new issue