]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: skip some unicode tests if expected output won't match
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 4 Sep 2018 10:26:03 +0000 (11:26 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 4 Sep 2018 10:26:03 +0000 (11:26 +0100)
commit7469aa0bc26d91ba3f32b4e10b47d47d9250be90
tree444164bfbfaa5f90f661af68810b11004701a83b
parentb899726faa5e06d260e3f34ed5d634cbc1e06795
tests: skip some unicode tests if expected output won't match

The expected output strings from the vshtabletest.c are created on a
modern Linux host where unicode printing support is very good. On older
Linux platforms, or non-Linux platforms, some unicode characters will
not be considered printable. While the vsh table alignment code will
stil do the right thing with escaping & aligning in this case, the
result will not match the test's expected output.

Since we know the code is working correctly, do a check with iswprint()
to validate the platform's quality and skip the test if it fails. This
fixes the test on FreeBSD platforms.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/vshtabletest.c