diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 1 | ||||
-rw-r--r-- | test/test-udev.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 0920e5a9b4..f6d68c24b8 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -2,6 +2,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} AM_CPPFLAGS = \ -include $(top_builddir)/config.h \ + -DUDEV_ROOT_RUN=\"$(rootrundir)\" \ -DVERSION=\"@VERSION@\" \ -I $(top_srcdir)/src/shared \ -I $(top_srcdir)/src/libudev \ diff --git a/test/test-udev.c b/test/test-udev.c index 817f08fda8..6bed8d61c4 100644 --- a/test/test-udev.c +++ b/test/test-udev.c @@ -54,7 +54,7 @@ static int fake_filesystems(void) { } fakefss[] = { { "test/sys", "/sys", "failed to mount test /sys" }, { "test/dev", "/dev", "failed to mount test /dev" }, - { "test/run", "/run", "failed to mount test /run" }, + { "test/run", UDEV_ROOT_RUN, "failed to mount test " UDEV_ROOT_RUN }, { "test/run", "/etc/udev/rules.d", "failed to mount empty /etc/udev/rules.d" }, { "test/run", "/lib/udev/rules.d", "failed to mount empty /lib/udev/rules.d" }, }; |