From a96466ca18332a76f7180fdafa47d2602abf12f0 Mon Sep 17 00:00:00 2001 From: arunmu Date: Wed, 16 Mar 2016 12:15:00 +0530 Subject: [PATCH] Communicate test case works in the last commit --- test/test_subprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_subprocess.cc b/test/test_subprocess.cc index 0183e1c..f3a6ac1 100755 --- a/test/test_subprocess.cc +++ b/test/test_subprocess.cc @@ -6,7 +6,7 @@ using namespace subprocess; void test_input() { auto p = Popen({"grep", "f"}, output{PIPE}, input{PIPE}); - const char* msg = "one\two\three\four\five\n"; + const char* msg = "one\ntwo\nthree\nfour\nfive\n"; p.send(msg, strlen(msg)); auto res = p.communicate(nullptr, 0); std::cout << res.first.data() << std::endl;