aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar Alex Polcyn <apolcyn@google.com>2016-12-06 04:00:05 +0000
committerGravatar Alex Polcyn <apolcyn@google.com>2016-12-06 04:00:05 +0000
commitfcf09ea42e0a4216292152b12514329ce49e7706 (patch)
tree61b3f91d32d9a272bed0cc9981bc45083257538d /test/cpp
parentdc74a4d58b229e6dc845dec2520a2b8379bb2263 (diff)
handle empty string for qps workers in driver and dont quit them on netperf
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/qps/driver.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc
index ea0b38e8ad..22b2cd080d 100644
--- a/test/cpp/qps/driver.cc
+++ b/test/cpp/qps/driver.cc
@@ -101,7 +101,7 @@ static std::unordered_map<string, std::deque<int>> get_hosts_and_cores(
static deque<string> get_workers(const string& name) {
char* env = gpr_getenv(name.c_str());
- if (!env) return deque<string>();
+ if (!env || strlen(env) == 0) return deque<string>();
deque<string> out;
char* p = env;