()
| 146 | |
| 147 | |
| 148 | def test_popen_ffi(): |
| 149 | proc = PopenWorker(register_ffi) |
| 150 | |
| 151 | # call python function via ffi |
| 152 | initargs = [0] |
| 153 | proc.send(call_py_ffi, initargs) |
| 154 | assert proc.recv() == initargs[0] |
| 155 | |
| 156 | # call cpp function (testing.echo) via ffi |
| 157 | initargs = [1] |
| 158 | proc.send(call_cpp_ffi, initargs) |
| 159 | assert proc.recv() == initargs[0] |
| 160 | |
| 161 | # call python function from ffi registry via cross-language dispatch |
| 162 | initargs = [2] |
| 163 | proc.send(call_cpp_py_ffi, initargs) |
| 164 | assert proc.recv() == initargs[0] |
| 165 | |
| 166 | |
| 167 | def test_popen_pool_executor_timeout(): |
no test coverage detected
searching dependent graphs…