MCPcopy Create free account
hub / github.com/IJHack/QtPass / executeBlockingWithInput

Method executeBlockingWithInput

tests/auto/executor/tst_executor.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void tst_executor::executeBlockingWithInput() {
54 QString output;
55 QString input = "test input";
56 int result = Executor::executeBlocking("cat", {}, input, &output);
57 QVERIFY2(result == 0, "cat should exit successfully");
58 QVERIFY2(output.contains("test input"), "output should echo input");
59}
60
61void tst_executor::executeBlockingExitCode() {
62 QString output;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected