summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2022-03-04 13:38:36 +0000
committerHåvard Pettersen <havardpe@oath.com>2022-03-05 15:00:58 +0000
commit2681bcd99a024d0e94c2cddd08b7636818773a73 (patch)
treefe8466205ba79ea6b7ab89008247070f88cd918f /staging_vespalib/src
parentbeed3becc8ec1abe88aea8aa88e6e703fb67dc3c (diff)
gc old process code
also added read_line function to new Process code
Diffstat (limited to 'staging_vespalib/src')
-rw-r--r--staging_vespalib/src/tests/state_server/state_server_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/staging_vespalib/src/tests/state_server/state_server_test.cpp b/staging_vespalib/src/tests/state_server/state_server_test.cpp
index 5903970b740..cb80a44a675 100644
--- a/staging_vespalib/src/tests/state_server/state_server_test.cpp
+++ b/staging_vespalib/src/tests/state_server/state_server_test.cpp
@@ -12,7 +12,7 @@
#include <vespa/vespalib/net/simple_metrics_producer.h>
#include <vespa/vespalib/net/simple_component_config_producer.h>
#include <vespa/vespalib/util/stringfmt.h>
-#include <vespa/vespalib/util/child_process.h>
+#include <vespa/vespalib/process/process.h>
#include <vespa/vespalib/net/state_explorer.h>
#include <vespa/vespalib/net/slime_explorer.h>
#include <vespa/vespalib/net/generic_state_handler.h>
@@ -39,8 +39,8 @@ std::map<vespalib::string,vespalib::string> empty_params;
//-----------------------------------------------------------------------------
vespalib::string run_cmd(const vespalib::string &cmd) {
- std::string out;
- ASSERT_TRUE(ChildProcess::run(cmd.c_str(), out));
+ vespalib::string out;
+ ASSERT_TRUE(Process::run(cmd.c_str(), out));
return out;
}
@@ -511,7 +511,7 @@ TEST("require that generic state can be explored") {
check_json(json_list_two, state_handler.get(host_tag, root_path + "list/two", empty_params));
}
-TEST_MAIN_WITH_PROCESS_PROXY() {
+TEST_MAIN() {
mkdir("var", S_IRWXU);
mkdir("var/run", S_IRWXU);
TEST_RUN_ALL();