diff options
author | Craig Tiller <ctiller@google.com> | 2015-05-19 09:25:37 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-05-19 09:25:37 -0700 |
commit | 882431fff5c06eed97633353016cbcac9361a2e2 (patch) | |
tree | 13b60ee9889c3e70fbeb025e90e58571fa1f3665 /test/cpp/qps/driver.cc | |
parent | c8dd76f6e683bb7198e5778c74a20f4960187f5d (diff) |
Compile fix
Diffstat (limited to 'test/cpp/qps/driver.cc')
-rw-r--r-- | test/cpp/qps/driver.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc index 08a32f0823..6959f980ae 100644 --- a/test/cpp/qps/driver.cc +++ b/test/cpp/qps/driver.cc @@ -48,6 +48,7 @@ #include "test/cpp/qps/histogram.h" #include "test/cpp/qps/qps_worker.h" #include "test/core/util/port.h" +#include "test/core/util/test_config.h" using std::list; using std::thread; @@ -100,7 +101,9 @@ ScenarioResult RunScenario(const ClientConfig& initial_client_config, // act as if we're a new test -- gets a good rng seed static bool called_init = false; if (!called_init) { - char *args[] = {"some-benchmark"}; + char args_buf[100]; + strcpy(args_buf, "some-benchmark"); + char *args[] = {args_buf}; grpc_test_init(1, args); called_init = true; } |