tests: Preload umockdev before running tests
authorBastien Nocera <hadess@hadess.net>
Wed, 2 Nov 2016 17:30:45 +0000 (18:30 +0100)
committerBastien Nocera <hadess@hadess.net>
Wed, 2 Nov 2016 17:32:19 +0000 (18:32 +0100)
Otherwise it's as if we were outside the test environment, which we
don't want to be.

https://bugzilla.gnome.org/show_bug.cgi?id=773224

Makefile.decl

index aab33c3..ea39c7a 100644 (file)
@@ -1,4 +1,5 @@
-GTESTER        = gtester               # in $PATH for non-GLIB packages
+# Note, we need this set for umockdev to be available in tests
+GTESTER        = env LD_PRELOAD=libumockdev-preload.so.0: gtester              # in $PATH for non-GLIB packages
 GTESTER_REPORT = gtester-report                # in $PATH for non-GLIB packages
 
 # initialize variables for unconditional += appending