mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 03:53:41 +00:00
9960a2be9b
Enable testing and fix a bug which leads to bolt build failing on some host filesystems.
13 lines
606 B
Diff
13 lines
606 B
Diff
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);
|