Fix `NSInvalidArgumentException` when querying `connected_displays` by Synse · Pull Request #8628 · osquery/osquery
abadaf7 should resolve the failing test, by returning -1 for unsupported rotation (instead of ""):
82: [----------] 1 test from connectedDisplays 82: [ RUN ] connectedDisplays.test_sanity 82: 2025-06-18 03:16:20.743 system_profiler[8992:43550] Device PreExisted [00000001000002f4] Apple Paravirtual device 82: /Users/runner/work/osquery/osquery/workspace/src/tests/integration/tables/helper.cpp:167: Failure 82: Value of: validate_value_using_flags(value, flags) 82: Actual: false 82: Expected: true 82: Standard validator of the column "rotation" with value "" failed 82: Row: {ambient_brightness_enabled: "-1", connection_type: "spdisplays_internal", display_id: "1800000", display_type: "", main: "1", manufactured_week: "26", manufactured_year: "2020", mirror: "0", name: "Unknown Display", online: "1", pixels: "1920 x 1080", product_id: "0", resolution: "1920 x 1080 @ 30.00Hz", rotation: "", serial_number: "1", vendor_id: "1006"} 82: 82: [ FAILED ] connectedDisplays.test_sanity (527 ms) 82: [----------] 1 test from connectedDisplays (527 ms total)
5f0b8ad updates the docs for the rotation column to reflect the new behavior.