aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2024-06-02 17:19:34 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2024-06-04 22:45:41 +0300
commit41a445c2284dcdd1c209fe618ea6b7ac1f117378 (patch)
tree6a7125b16006e95a98bfad5cab3595261bdc9f18 /unittests
parent4cc2e2171a7a6452da6ee0ec336ecb0e77f19791 (diff)
downloadmeson-41a445c2284dcdd1c209fe618ea6b7ac1f117378.zip
meson-41a445c2284dcdd1c209fe618ea6b7ac1f117378.tar.gz
meson-41a445c2284dcdd1c209fe618ea6b7ac1f117378.tar.bz2
Extract native file parser to machinefile source file.
Diffstat (limited to 'unittests')
-rw-r--r--unittests/machinefiletests.py2
-rw-r--r--unittests/platformagnostictests.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/unittests/machinefiletests.py b/unittests/machinefiletests.py
index 3899ea9..5ff862c 100644
--- a/unittests/machinefiletests.py
+++ b/unittests/machinefiletests.py
@@ -59,7 +59,7 @@ class MachineFileStoreTests(TestCase):
def test_loading(self):
store = machinefile.MachineFileStore([cross_dir / 'ubuntu-armhf.txt'], [], str(cross_dir))
- self.assertTrue(True)
+ self.assertIsNotNone(store)
class NativeFileTests(BasePlatformTests):
diff --git a/unittests/platformagnostictests.py b/unittests/platformagnostictests.py
index 33a789b..fe598a7 100644
--- a/unittests/platformagnostictests.py
+++ b/unittests/platformagnostictests.py
@@ -274,7 +274,7 @@ class PlatformAgnosticTests(BasePlatformTests):
expected = json.load(f)['meson']['modules']
self.assertEqual(data['modules'], expected)
- self.assertEqual(data['count'], 69)
+ self.assertEqual(data['count'], 70)
def test_meson_package_cache_dir(self):
# Copy testdir into temporary directory to not pollute meson source tree.