Skip to content

Commit

Permalink
[make check] Use xvfb with screen number 0
Browse files Browse the repository at this point in the history
This fixes make check for me, and it is already what debian/rules
uses (and scripts/jenkins-run.sh)

Closes #31473
  • Loading branch information
strk committed Aug 30, 2019
1 parent 7e3b539 commit c4c22db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -468,7 +468,7 @@ CONFIGURE_FILE(
IMMEDIATE @ONLY)
# For server side testing we have no X, we can use xvfb as a fake x
# sudo apt-get install xvfb
add_custom_target(check COMMAND xvfb-run --server-args=-screen\ 10\ 1024x768x24 ctest --output-on-failure)
add_custom_target(check COMMAND xvfb-run --server-args=-screen\ 0\ 1024x768x24 ctest --output-on-failure)
ENDIF(ENABLE_TESTS)

IF (WITH_CORE)
Expand Down
2 changes: 1 addition & 1 deletion tests/README.md
Expand Up @@ -43,7 +43,7 @@ machine does not have an X server. In that case you need to run the test under
`xvfb-run`. For example:

```
xvfb-run --server-args=-screen\ 10\ 1024x768x24 ctest -V -R PyQgsServerWMSGetMap
xvfb-run --server-args=-screen\ 0\ 1024x768x24 ctest -V -R PyQgsServerWMSGetMap
```

# Advanced configuration
Expand Down

0 comments on commit c4c22db

Please sign in to comment.