test: drop dlopen_gcrypt() test from test-dlopen-so
libgcrypt is used only by test-fsprg. We do not add dlopen notes for unit tests, so the library may not be installed on the system. If systemd is built with HAVE_GCRYPT but libgcrypt is not installed, the test fails. There is no need to install libgcrypt solely for test-dlopen-so, so drop the test case. (cherry picked from commit 764b9a724925c4167e91fd36311e38aee8c6871a)
This commit is contained in:
committed by
Luca Boccassi
parent
f3d4d3e25a
commit
2e8e1bf2d7
@@ -329,10 +329,7 @@ executables += [
|
||||
'type' : 'manual',
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files(
|
||||
'test-dlopen-so.c',
|
||||
'gcrypt-util.c',
|
||||
),
|
||||
'sources' : files('test-dlopen-so.c'),
|
||||
'dependencies' : [
|
||||
libacl_cflags,
|
||||
libapparmor_cflags,
|
||||
@@ -344,7 +341,6 @@ executables += [
|
||||
libcurl_cflags,
|
||||
libfdisk_cflags,
|
||||
libfido2_cflags,
|
||||
libgcrypt_cflags,
|
||||
libgnutls_cflags,
|
||||
libidn2_cflags,
|
||||
libkmod_cflags,
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "curl-util.h"
|
||||
#include "elf-util.h"
|
||||
#include "fdisk-util.h"
|
||||
#include "gcrypt-util.h"
|
||||
#include "gnutls-util.h"
|
||||
#include "idn-util.h"
|
||||
#include "libarchive-util.h"
|
||||
@@ -55,7 +54,6 @@ static int run(int argc, char **argv) {
|
||||
ASSERT_DLOPEN(dlopen_dw, HAVE_ELFUTILS);
|
||||
ASSERT_DLOPEN(dlopen_elf, HAVE_ELFUTILS);
|
||||
ASSERT_DLOPEN(dlopen_fdisk, HAVE_LIBFDISK);
|
||||
ASSERT_DLOPEN(dlopen_gcrypt, HAVE_GCRYPT);
|
||||
ASSERT_DLOPEN(dlopen_gnutls, HAVE_GNUTLS);
|
||||
ASSERT_DLOPEN(dlopen_idn, HAVE_LIBIDN2);
|
||||
ASSERT_DLOPEN(dlopen_libacl, HAVE_ACL);
|
||||
|
||||
Reference in New Issue
Block a user