diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2022-02-15 09:01:43 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-02-15 10:21:08 +1000 |
commit | 15bb122bc2474e9eefe681bfbbadbaeb848061c1 (patch) | |
tree | 33334486318c94c0fbea5f89fa83f79491ef9baa /test | |
parent | c215f1e6b085e80b265c6e998afa057ba74d5e01 (diff) | |
download | xf86-input-wacom-15bb122bc2474e9eefe681bfbbadbaeb848061c1.tar.gz |
test: skip the wacom tests if we can't open the .so file
Distribution package builds that use -Wl,-z,relro -Wl,-z,now will
attempt to resolve all symbols on dlopen(). This is explicitly what we
do not want because we don't link in the whole X server.
It's a bit hard to override this for a single executable (my attempts
didn't go far so there may be some other flag that influences this too)
so for now just skip the whole test - this is better than failing the
test suite.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r-- | test/wacom-tests.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/wacom-tests.c b/test/wacom-tests.c index ddc9c84..63ca22f 100644 --- a/test/wacom-tests.c +++ b/test/wacom-tests.c @@ -31,7 +31,8 @@ int main(void) { if (handle == NULL) { fprintf(stderr, "Failed to open %s: %s\n", TESTDRV, dlerror()); - return 1; + fprintf(stderr, "This test suite relies on dlopen(RTLD_LAZY) which may be disabled by your compiler/linker flags\n"); + return 77; } func = dlsym(handle, TESTFUNC); |