From 3c4fa118096f9b7ba98d154fce350d95d4444d93 Mon Sep 17 00:00:00 2001 From: kevin Heifner Date: Sat, 26 Sep 2026 11:32:54 -0500 Subject: [PATCH] query_engine_plugin: pass the OC option only to builds that have it chain_plugin registers sys-vm-oc-enable only when the OC runtime is compiled in, but the HTTP test passed --sys-vm-oc-enable none to every application it starts. On macOS arm64, which has no OC runtime, each init failed with "Unknown option" and every test case failed. Only the macOS nightly runs nonparallelizable tests, so PR CI never showed it. Append the option only under SYSIO_SYS_VM_OC_RUNTIME_ENABLED, as test_read_only_trx does. --- plugins/query_engine_plugin/test/test_query_http.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/query_engine_plugin/test/test_query_http.cpp b/plugins/query_engine_plugin/test/test_query_http.cpp index 358ee1f5ca..67e1206660 100644 --- a/plugins/query_engine_plugin/test/test_query_http.cpp +++ b/plugins/query_engine_plugin/test/test_query_http.cpp @@ -82,9 +82,11 @@ struct http_application { "--chain-state-db-size-mb", "64", "--chain-state-db-guard-size-mb", - "0", - "--sys-vm-oc-enable", - "none"}; + "0"}; +#ifdef SYSIO_SYS_VM_OC_RUNTIME_ENABLED + // chain_plugin registers this option only in builds with the OC runtime. + args.insert(args.end(), {"--sys-vm-oc-enable", "none"}); +#endif if (enabled) args.insert(args.end(), {"--plugin", "sysio::query_engine_plugin"}); if (enable_http)