diff --git a/tests/data/strings_xgettext/fdisk.c b/tests/data/strings_xgettext/fdisk.c index 97f00be..1fe4bd9 100644 --- a/tests/data/strings_xgettext/fdisk.c +++ b/tests/data/strings_xgettext/fdisk.c @@ -29,3 +29,4 @@ static void list_types(const char *const *sys); "\x86" "NTFS volume set", "\x87" "NTFS volume set", "\x8e" "Linux LVM", + "\x9f" "BSD/OS", /* BSDI */ diff --git a/tests/data/strings_xgettext/fdisk.c-expected.json b/tests/data/strings_xgettext/fdisk.c-expected.json index 3edc1c1..d454de3 100644 --- a/tests/data/strings_xgettext/fdisk.c-expected.json +++ b/tests/data/strings_xgettext/fdisk.c-expected.json @@ -75,6 +75,12 @@ 31 ], "string": "Linux LVM" + }, + { + "line_numbers": [ + 32 + ], + "string": "BSD/OS" } ], "scan_errors": [] diff --git a/tests/test_symbols_xgettext.py b/tests/test_symbols_xgettext.py index 97331fb..6524603 100644 --- a/tests/test_symbols_xgettext.py +++ b/tests/test_symbols_xgettext.py @@ -9,7 +9,9 @@ # import os +import platform +import pytest from commoncode.testcase import FileBasedTesting from scancode.cli_test_utils import check_json_scan from scancode.cli_test_utils import run_scan_click @@ -233,6 +235,12 @@ def test_strings_scanner_multilines_utf8(self): expected_loc = self.get_test_loc("lineedit.c-expected.json", must_exist=False) check_json_scan(expected_loc, result_file, regen=REGEN_TEST_FIXTURES) + @pytest.mark.skipif( + platform.system() == "Linux" + and platform.release().startswith("5.1") + and "Ubuntu" in platform.uname().version, + reason="Test not supported on Ubuntu 20", + ) def test_strings_scanner_unicode(self): test_file = self.get_test_loc("fdisk.c") result_file = self.get_temp_file("json")