]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
.travis: use RTLD_NOW for tests
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 6 Jul 2020 09:11:52 +0000 (11:11 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 6 Jul 2020 11:25:45 +0000 (07:25 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
.travis.yml
src/lxcfs.c

index 1425555b124fd38a0c2b6324b384d60afff51818..234edb2d95bd12382d252839e442f1ea0d7389db 100644 (file)
@@ -22,7 +22,7 @@ before_install:
 
 script:
  - ./bootstrap.sh
- - ./configure --prefix=/usr
+ - CFLAGS='-g -O0 -std=c11 -DDEBUG -DVERBOSE -DRESOLVE_NOW -Wall -Werror' ./configure --prefix=/usr
  - make -j4
  - (cd tests && make tests)
  - echo 1 | sudo tee /sys/fs/cgroup/cpuset/cgroup.clone_children || true
index a6b458371ba8299c6a8a7414aebb95d2e9874e44..94256d43acb173bd295ee7e3e934a960ffa9f039 100644 (file)
@@ -127,7 +127,11 @@ static void do_reload(void)
        }
 
        /* First try loading using ld.so */
+#ifdef RESOLVE_NOW
+       dlopen_handle = dlopen("liblxcfs.so", RTLD_NOW);
+#else
        dlopen_handle = dlopen("liblxcfs.so", RTLD_LAZY);
+#endif
        if (dlopen_handle) {
                lxcfs_debug("Opened liblxcfs.so");
                goto good;