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