GH-49538: Hold a handle to the driver for the entire duration of the test suite to avoid a segfault on teardown. This most likely due to having two statically linked copies of gRPC in the test program (one from the driver and one from the mock server).
| 37 | // statically linked copies of gRPC in the test program (one from the driver and |
| 38 | // one from the mock server). |
| 39 | void PinDriverModule() { |
| 40 | HMODULE unused = nullptr; |
| 41 | GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_PIN, ARROW_FLIGHT_SQL_ODBC_DLL_FILE_NAME, |
| 42 | &unused); |
| 43 | } |
| 44 | |
| 45 | } // namespace |
| 46 | #endif // _WIN32 |