]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/test/test-dlopen.c
febfc60e00ed0783b8f38c84ce2e5f2243866ae2
[thirdparty/systemd.git] / src / test / test-dlopen.c
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 /***
3 This file is part of systemd.
4
5 Copyright 2016 Zbigniew Jędrzejewski-Szmek
6 ***/
7
8 #include <dlfcn.h>
9 #include <stdlib.h>
10
11 #include "macro.h"
12
13 int main(int argc, char **argv) {
14 void *handle;
15
16 assert_se(handle = dlopen(argv[1], RTLD_NOW));
17 assert_se(dlclose(handle) == 0);
18
19 return EXIT_SUCCESS;
20 }