ts_skip "no loop-device support"
}
+function ts_check_wcsspn {
+ # https://gitlab.com/qemu-project/qemu/-/issues/1248
+ if [ -e "$TS_HELPER_SYSINFO" ] &&
+ [ "$("$TS_HELPER_SYSINFO" wcsspn-ok)" = "0" ]; then
+
+ ts_skip "non-functional widestring functions"
+ fi
+}
+
function ts_report_skip {
ts_report " SKIPPED ($1)"
}
#include <limits.h>
#include <stdint.h>
#include <inttypes.h>
+#include <wchar.h>
typedef struct {
const char *name;
return 0;
}
+static int hlp_wcsspn_ok(void)
+{
+ printf("%d\n", wcsspn(L"FOO", L"F") == 1);
+ return 0;
+}
+
static mntHlpfnc hlps[] =
{
{ "WORDSIZE", hlp_wordsize },
{ "ULONG_MAX32",hlp_ulong_max32 },
{ "UINT64_MAX", hlp_u64_max },
{ "byte-order", hlp_endianness },
+ { "wcsspn-ok", hlp_wcsspn_ok },
{ NULL, NULL }
};
export LC_CTYPE='C'
. $TS_TOPDIR/functions.sh
-ts_skip_qemu_user # https://gitlab.com/qemu-project/qemu/-/issues/1248
ts_init "$*"
+ts_check_wcsspn
ts_check_test_command "$TS_CMD_COLCRT"
TS_DESC="regressions"
. $TS_TOPDIR/functions.sh
-ts_skip_qemu_user # https://gitlab.com/qemu-project/qemu/-/issues/1248
ts_init "$*"
+ts_check_wcsspn
ts_check_test_command "$TS_CMD_COLCRT"
ts_check_prog "timeout"
TS_DESC="table"
. $TS_TOPDIR/functions.sh
-ts_skip_qemu_user # https://gitlab.com/qemu-project/qemu/-/issues/1248
ts_init "$*"
+ts_check_wcsspn
ts_check_test_command "$TS_CMD_COLUMN"
ts_cd "$TS_OUTDIR"