| 19 | using TPyObject = THolder<PyObject, TPyObjDeleter>; |
| 20 | |
| 21 | int runSlowPy3cc(const char* slowPy3cc, const char* srcpath, const char* inPath, const char* outPath) { |
| 22 | TShellCommandOptions opts; |
| 23 | opts.SetUseShell(false); |
| 24 | opts.SetOutputStream(&Cout); |
| 25 | opts.SetErrorStream(&Cerr); |
| 26 | |
| 27 | TShellCommand cmd(slowPy3cc, {srcpath, inPath, outPath}, opts); |
| 28 | cmd.Run().Wait(); |
| 29 | |
| 30 | if (auto rc = cmd.GetExitCode(); rc.Defined()) { |
| 31 | return *rc; |
| 32 | } |
| 33 | return 1; |
| 34 | } |
| 35 | |
| 36 | int main(int argc, char** argv) { |
| 37 | if (argc != 6) { |
no test coverage detected