@@ -22,7 +22,7 @@ TEST_CASE(
22
22
commands.push_back (" /bin/echo" );
23
23
commands.push_back (to_be_echoed);
24
24
#endif
25
- piped_processt process (commands);
25
+ piped_processt process (& commands);
26
26
27
27
// This is an indirect way to detect when the pipe has something. This
28
28
// could (in theory) also return when there is an error, but this unit
@@ -45,7 +45,7 @@ TEST_CASE(
45
45
const std::string expected_error (" Launching abcde failed" );
46
46
commands.push_back (" abcde" );
47
47
#endif
48
- piped_processt process (commands);
48
+ piped_processt process (& commands);
49
49
50
50
// This is an indirect way to detect when the pipe has something. This
51
51
// could (in theory) also return when there is an error, but this unit
@@ -81,7 +81,7 @@ TEST_CASE(
81
81
std::chrono::steady_clock::now ();
82
82
{
83
83
// Scope restriction to cause destruction
84
- piped_processt process (commands);
84
+ piped_processt process (& commands);
85
85
}
86
86
std::chrono::steady_clock::time_point end_time =
87
87
std::chrono::steady_clock::now ();
@@ -93,7 +93,7 @@ TEST_CASE(
93
93
// Currently not working under Linxu/MacOS?!
94
94
// commands.push_back("sleep 6");
95
95
// time_t calc = time(NULL);
96
- // piped_processt process(commands);
96
+ // piped_processt process(& commands);
97
97
// process.~piped_processt();
98
98
// calc = time(NULL) - calc;
99
99
size_t calc = 0 ;
@@ -112,7 +112,7 @@ TEST_CASE(
112
112
std::vector<std::string> commands;
113
113
commands.push_back (" z3" );
114
114
commands.push_back (" -in" );
115
- piped_processt process (commands);
115
+ piped_processt process (& commands);
116
116
117
117
REQUIRE (
118
118
process.send (" (echo \" hi\" )\n " ) ==
@@ -134,7 +134,7 @@ TEST_CASE(
134
134
commands.push_back (" z3" );
135
135
commands.push_back (" -in" );
136
136
const std::string termination_statement = " (exit)\n " ;
137
- piped_processt process (commands);
137
+ piped_processt process (& commands);
138
138
139
139
REQUIRE (
140
140
process.send (" (echo \" hi\" )\n " ) ==
@@ -164,7 +164,7 @@ TEST_CASE(
164
164
commands.push_back (" z3" );
165
165
commands.push_back (" -in" );
166
166
commands.push_back (" -smt2" );
167
- piped_processt process (commands);
167
+ piped_processt process (& commands);
168
168
169
169
std::string message =
170
170
" (set-logic QF_LIA) (declare-const x Int) (declare-const y Int) (assert (> "
@@ -188,7 +188,7 @@ TEST_CASE(
188
188
commands.push_back (" z3" );
189
189
commands.push_back (" -in" );
190
190
commands.push_back (" -smt2" );
191
- piped_processt process (commands);
191
+ piped_processt process (& commands);
192
192
193
193
std::string statement =
194
194
" (set-logic QF_LIA) (declare-const x Int) (declare-const y Int) (assert (> "
@@ -210,7 +210,7 @@ TEST_CASE(
210
210
std::vector<std::string> commands;
211
211
commands.push_back (" z3" );
212
212
commands.push_back (" -in" );
213
- piped_processt process (commands);
213
+ piped_processt process (& commands);
214
214
215
215
REQUIRE (
216
216
process.send (" (echo \" hi\" )\n " ) ==
@@ -240,7 +240,7 @@ TEST_CASE(
240
240
commands.push_back (" z3" );
241
241
commands.push_back (" -in" );
242
242
commands.push_back (" -smt2" );
243
- piped_processt process (commands);
243
+ piped_processt process (& commands);
244
244
245
245
std::string statement =
246
246
" (set-logic QF_LIA) (declare-const x Int) (declare-const y Int) (assert (> "
@@ -296,7 +296,7 @@ TEST_CASE(
296
296
commands.push_back (" z3" );
297
297
commands.push_back (" -in" );
298
298
commands.push_back (" -smt2" );
299
- piped_processt process (commands);
299
+ piped_processt process (& commands);
300
300
301
301
std::string statement =
302
302
" (set-logic QF_LIA) (declare-const x Int) (declare-const y Int) (assert (> "
0 commit comments