Signed-off-by: Masatake YAMATO <yamato@redhat.com>
int ns = ioctl(sd, SIOCGSKNS);
if (ns < 0)
- err(EXIT_FAILURE, "failed in ioctl(SIOCGSKNS)");
+ err((errno == ENOSYS? EXIT_ENOSYS: EXIT_FAILURE),
+ "failed in ioctl(SIOCGSKNS)");
close(sd);
if (ns != fdescs[0].fd) {
. "$TS_TOPDIR"/functions.sh
ts_init "$*"
ts_skip_nonroot
-ts_skip_qemu_user
+. "$TS_SELF/lsfd-functions.bash"
ts_check_test_command "$TS_CMD_LSFD"
ts_check_test_command "$TS_HELPER_MKFDS"
fi
wait "${MKFDS_PID}"
} > "$TS_OUTPUT" 2>&1
+if [ "$?" == "$ENOSYS" ]; then
+ ts_skip "ioctl(fd, SIOCGSKNS) is not available"
+fi
ts_finalize