util-linux/tests/helpers
Karel Zak 1c75a85101 libfdisk: use open(O_EXCL) to detect if device is used
It's seems detection by BLKRRPART is broken in recent kernels
(probably regression), and it's also overkill to force kernel re-read
all and generate all the events. It seems more elegant to use O_EXCL.

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-15 15:14:52 +02:00
..
Makemodule.am tests: (col) avoid hardcoding of errno string 2019-08-27 09:37:01 +02:00
test_byteswap.c tests: add static keyword where needed [smatch scan] 2017-03-17 21:22:26 +00:00
test_mbsencode.c tests: add tests for encode functions from lib/mbsalign.c 2018-01-10 17:40:53 +01:00
test_md5.c lib/md5: use ul_/UL_ prefix 2017-12-12 12:06:15 +01:00
test_pathnames.c tests: add static keyword where needed [smatch scan] 2017-03-17 21:22:26 +00:00
test_sha1.c test_sha1: update helper 2017-12-12 11:38:17 +01:00
test_sigreceive.c tests: remove redundant check for NULL [cppcheck] 2016-01-19 12:59:12 +06:00
test_strerror.c libfdisk: use open(O_EXCL) to detect if device is used 2021-04-15 15:14:52 +02:00
test_sysinfo.c tests: improve u64 use in ipcs test 2021-01-19 16:25:33 +01:00
test_tiocsti.c test_tiocsti: check ioctl() return code [coverity scan] 2020-07-14 11:43:38 +02:00
test_uuid_namespace.c misc: replace magic number 37 with UUID_STR_LEN 2017-09-05 11:49:21 +02:00