summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-02-12 00:16:34 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-02-12 00:16:34 +0530
commitd4dd25c354be89d62ac616a8278fa4df3547669e (patch)
tree2530d28ee7ce16be8e05d94745459926f53e53f4
parente904c92b2417e7ad0279b0c6f0bdeebaf8f842e3 (diff)
downloadmeson-unbreak-profile-self.tar.gz
unit tests: Ensure that --profile-self keeps workingunbreak-profile-self
-rwxr-xr-xrun_unittests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 642a05f2e..c5ad49934 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3418,8 +3418,9 @@ recommended as it is not supported on some platforms''')
def test_command_line(self):
testdir = os.path.join(self.unit_test_dir, '34 command line')
- # Verify default values when passing no args
- self.init(testdir)
+ # Verify default values when passing no args that affect the
+ # configuration, and as a bonus, test that --profile-self works.
+ self.init(testdir, extra_args=['--profile-self'])
obj = mesonbuild.coredata.load(self.builddir)
self.assertEqual(obj.builtins['default_library'].value, 'static')
self.assertEqual(obj.builtins['warning_level'].value, '1')