xserver/test
Alan Coopersmith d1cc5a599f test: remove extra return
Clears warning from clang 19.1.7:

test/misc.c:239:12: warning: 'return' will never be executed
 [-Wunreachable-code-return]
  239 |     return 0;

Fixes: 46b579e8d ("test: switch the unit tests to something resembling a test suite")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1910>
2025-04-19 17:02:15 +00:00
..
bigreq
bugs
damage
scripts
sync test: Fix xsync test 2025-02-25 19:25:40 +01:00
xi1
xi2
.gitignore
README
fixes.c
hashtabletest.c
input.c
list.c test: remove stray semi-colons after functions 2025-04-19 17:02:15 +00:00
meson.build
misc.c test: remove extra return 2025-04-19 17:02:15 +00:00
signal-logging.c os: log: replace LogMessageVerbSigSafe() by LogMessageVerb() 2025-02-06 23:35:27 +00:00
simple-xinit.c
string.c
test_xkb.c include: drop now empty xkbfile.h 2025-02-06 22:45:25 +00:00
tests-common.c
tests-common.h
tests.c
tests.h
touch.c
xfree86.c
xtest.c

                        X server test suite

This suite contains a set of tests to verify the behaviour of functions used
internally to the server.

= How it works =
Through some automake abuse, we link the test programs with the same static
libraries as the Xorg binary. The test suites can then call various functions
and verify their behaviour - without the need to start the server or connect
clients.

This testing only works for functions that do not rely on a particular state
of the X server. Unless the test suite replicates the expected state, which
may be difficult.

= How to run the tests =
Run "make check" in the test directory. This will compile the tests and execute
them in the order specified in the TESTS variable in test/Makefile.am.

Each set of tests related to a subsystem are available as a binary that can be
executed directly. For example, run "xkb" to perform some xkb-related tests.

== Adding a new test ==
When adding a new test, ensure that you add a short description of what the
test does and what the expected outcome is.