aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-02-09 13:35:07 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-02-15 12:51:25 +0000
commit9e6d3f903c7e828823eb4544c83bf340ff593f95 (patch)
treea938e3128ad8374f3e05403fb82cc24d54fc9429 /run_unittests.py
parentb78a01bcedb668158c97574d6a140d63a2a108e5 (diff)
downloadmeson-9e6d3f903c7e828823eb4544c83bf340ff593f95.zip
meson-9e6d3f903c7e828823eb4544c83bf340ff593f95.tar.gz
meson-9e6d3f903c7e828823eb4544c83bf340ff593f95.tar.bz2
Only expose exception() test function during unit tests
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index a520ad2..69f467b 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1938,6 +1938,7 @@ class FailureTests(BasePlatformTests):
Test exit status on python exception
'''
tdir = os.path.join(self.unit_test_dir, '21 exit status')
+ os.environ['MESON_UNIT_TEST'] = '1'
with self.assertRaises(subprocess.CalledProcessError) as cm:
self.init(tdir, inprocess=False)
self.assertEqual(cm.exception.returncode, 2)