From 78f8a286d06eb31f361d616098e59c0cfee2a911 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 30 Aug 2021 10:38:47 -0700 Subject: environment: add ppc -> ppc64 for aix to detect_cpu This seems like an oversight, that we'd replace ppc with ppc64 on AIX for the cpu_family, but not for the specific cpu. --- unittests/internaltests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittests/internaltests.py') diff --git a/unittests/internaltests.py b/unittests/internaltests.py index ad86062..de2badb 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -1509,7 +1509,7 @@ class InternalTests(unittest.TestCase): self.assertEqual(actual, expected) with mock.patch('mesonbuild.environment.any_compiler_has_define', mock.Mock(return_value=True)): - for test, expected in [('x86_64', 'i686'), ('aarch64', 'arm')]: + for test, expected in [('x86_64', 'i686'), ('aarch64', 'arm'), ('ppc', 'ppc64')]: with self.subTest(test, has_define=True), mock_trial(test): actual = mesonbuild.environment.detect_cpu({}) self.assertEqual(actual, expected) -- cgit v1.1