Skip to content

Commit 70d2af0

Browse files
OmniTroidclaude
andcommitted
CI Linux: run tests under the offscreen QPA
test_aopacket uses QTEST_MAIN, which builds a QGuiApplication and needs a platform plugin. The Linux runner is headless — xcb can't connect to a display and the test aborts before its first assertion. Force the offscreen QPA for the ctest step so QGuiApplication initialises against a memory-backed surface. test_loopsidecar (QTEST_APPLESS_MAIN) was unaffected. Windows runners have a real display so no equivalent fix is needed there. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 2c14c8f commit 70d2af0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ jobs:
8989
run: ./configure.sh QT_PATH="$QT_ROOT_DIR" BUILD_TYPE=Release
9090

9191
- name: Run tests
92+
env:
93+
QT_QPA_PLATFORM: offscreen
9294
run: ctest --output-on-failure
9395

9496
- name: Stage APNG plugin for AppImage

0 commit comments

Comments
 (0)