Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Renamed process1 to process
Browse files Browse the repository at this point in the history
  • Loading branch information
eidheim committed Dec 6, 2015
1 parent 5048741 commit 57379ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/open_close_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ using namespace std;
int main() {
bool stdout_error=false;
for(size_t c=0;c<10000;c++) {
Process process1("echo Hello World", "", [&stdout_error](const char *bytes, size_t n) {
Process process("echo Hello World", "", [&stdout_error](const char *bytes, size_t n) {
if(std::string(bytes, n)!="Hello World\n")
stdout_error=true;
});
auto exit_code=process1.get_exit_code();
auto exit_code=process.get_exit_code();
if(exit_code!=0) {
cerr << "Process returned failure." << endl;
return 1;
Expand Down

0 comments on commit 57379ee

Please sign in to comment.