Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v245-rc2
/
.
/
src
/
test
/
test-dlopen.c
blob: 148ebaa4d0728050516b08741d3bd29c72b57e66 [
file
] [
log
] [
blame
] [
raw
]
/* SPDX-License-Identifier: LGPL-2.1+ */
#include
<dlfcn.h>
#include
<stdlib.h>
#include
"macro.h"
int
main
(
int
argc
,
char
**
argv
)
{
void
*
handle
;
assert_se
(
handle
=
dlopen
(
argv
[
1
],
RTLD_NOW
));
assert_se
(
dlclose
(
handle
)
==
0
);
return
EXIT_SUCCESS
;
}