aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/cmd/getversion.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: fix uClibc for getversion.cJosé Luis Salvador Rufo2024-11-141-1/+5
| | | | | | | | | | This patch fixes compilation with uClibc by applying the same fallback as commit e12d76176d4e5454db62eb48b58ecd4970838a76 to the `getversion.c` file, which was previously overlooked. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: José Luis Salvador Rufo <[email protected]> Closes #16735 Closes #16741
* Use <fcntl.h> instead of <sys/fcntl.h>Sam James2024-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | When building on musl, we get: ``` In file included from tests/zfs-tests/cmd/getversion.c:22: /usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp] 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> In file included from module/os/linux/zfs/vdev_file.c:36: /usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp] 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> ``` Bug: https://bugs.gentoo.org/925235 Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Sam James <[email protected]> Closes #15925
* tests: cmd: don't recurseнаб2022-04-011-0/+48
This confers an >10x speedup on t/z-t/cmd builds (12s -> 1.1s), gets rid of 23 redundant identical automake specs and gitignores, and groups the binaries with their common headers Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13259