Skip to content

Runner does not capture process output #2

@difhel

Description

@difhel

Testing this executable:

#include <iostream>
using namespace std;

int main() {
    cout << "Welcome from executable" << endl;
}
g++ tester.cpp -o tester.o
import runner_lib_py

lim = runner_lib_py.Runner.Limits()
lim.thread = 5
lim.memory = 1000 # kb
lim.time = 2000 # ms
x = runner_lib_py.Runner("/home/mf/projects/elan/runner/tester.o", "input", lim)

print(x.GetOutput().res)
print(x.GetOutput().output)

The program returns ExitStatus.OK, but x.GetOutput().output is empty.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions