aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2023-03-30 14:27:59 -0400
committerEli Schwartz <eschwartz93@gmail.com>2023-03-30 17:01:04 -0400
commitad151d9f1123e84fea055848867c33bc965307f8 (patch)
tree6554fdd984c598ad96fe825e57fbb806e0875583 /unittests
parentb30cd5d2d587546eac8b560a8c311a52d69fb53e (diff)
downloadmeson-ad151d9f1123e84fea055848867c33bc965307f8.zip
meson-ad151d9f1123e84fea055848867c33bc965307f8.tar.gz
meson-ad151d9f1123e84fea055848867c33bc965307f8.tar.bz2
coredata: Fix changing prefix option
This is a regression from #11537.
Diffstat (limited to 'unittests')
-rw-r--r--unittests/allplatformstests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index b9c3fe0..bb50128 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -4601,21 +4601,21 @@ class AllPlatformTests(BasePlatformTests):
olddata = filename.read_bytes()
oldmtime = os.path.getmtime(filename)
- for opt in ('-Dstring=val', '--buildtype=plain', '-Dfeature=disabled'):
+ for opt in ('-Dstring=val', '--buildtype=plain', '-Dfeature=disabled', '-Dprefix=/abc'):
self.setconf([opt])
newdata = filename.read_bytes()
newmtime = os.path.getmtime(filename)
- self.assertEqual(olddata, newdata)
self.assertEqual(oldmtime, newmtime)
+ self.assertEqual(olddata, newdata)
olddata = newdata
oldmtime = newmtime
- for opt in ('-Dstring=abc', '--buildtype=release', '-Dfeature=enabled'):
+ for opt in ('-Dstring=abc', '--buildtype=release', '-Dfeature=enabled', '-Dprefix=/def'):
self.setconf([opt])
newdata = filename.read_bytes()
newmtime = os.path.getmtime(filename)
- self.assertNotEqual(olddata, newdata)
self.assertGreater(newmtime, oldmtime)
+ self.assertNotEqual(olddata, newdata)
olddata = newdata
oldmtime = newmtime