summary refs log tree commit diff
path: root/pkgs/development/libraries/umockdev/fix-test-paths.patch
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2019-08-18 20:33:15 +0300
committerNikolay Amiantov <ab@fmap.me>2019-08-18 21:17:32 +0300
commit9960a2be9b32a6d868046c5bfa188b9a0dd66682 (patch)
tree1b882ebab99ed8e49152625b45553ae63837b68a /pkgs/development/libraries/umockdev/fix-test-paths.patch
parent4835f65e9507bf4ba2defee4d8f1a6077b621960 (diff)
downloadnixpkgs-9960a2be9b32a6d868046c5bfa188b9a0dd66682.tar
nixpkgs-9960a2be9b32a6d868046c5bfa188b9a0dd66682.tar.gz
nixpkgs-9960a2be9b32a6d868046c5bfa188b9a0dd66682.tar.bz2
nixpkgs-9960a2be9b32a6d868046c5bfa188b9a0dd66682.tar.lz
nixpkgs-9960a2be9b32a6d868046c5bfa188b9a0dd66682.tar.xz
nixpkgs-9960a2be9b32a6d868046c5bfa188b9a0dd66682.tar.zst
nixpkgs-9960a2be9b32a6d868046c5bfa188b9a0dd66682.zip
umockdev: 0.12.1 -> 0.13.1
Enable testing and fix a bug which leads to bolt build failing on some host filesystems.
Diffstat (limited to 'pkgs/development/libraries/umockdev/fix-test-paths.patch')
-rw-r--r--pkgs/development/libraries/umockdev/fix-test-paths.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/libraries/umockdev/fix-test-paths.patch b/pkgs/development/libraries/umockdev/fix-test-paths.patch
new file mode 100644
index 00000000000..53015d66268
--- /dev/null
+++ b/pkgs/development/libraries/umockdev/fix-test-paths.patch
@@ -0,0 +1,12 @@
+diff -ru3 umockdev-0.13.1/tests/test-umockdev.c umockdev-0.13.1-new/tests/test-umockdev.c
+--- umockdev-0.13.1/tests/test-umockdev.c	2019-08-18 20:39:39.708262517 +0300
++++ umockdev-0.13.1-new/tests/test-umockdev.c	2019-08-18 21:04:27.688761503 +0300
+@@ -1084,7 +1084,7 @@
+ 
+     /* sys/ in other dir should not be trapped */
+     errno = 0;
+-    dirfd = open("/run", O_RDONLY | O_DIRECTORY);
++    dirfd = open("/tmp", O_RDONLY | O_DIRECTORY);
+     g_assert_cmpint(openat(dirfd, "sys", O_RDONLY), <, 0);
+     g_assert_cmpint(errno, ==, ENOENT);
+     g_assert_cmpint(openat64(dirfd, "sys", O_RDONLY), <, 0);