aboutsummaryrefslogtreecommitdiff
path: root/unittests/windowstests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2024-04-14 12:58:30 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2025-02-13 15:26:44 +0200
commit518c732ea9b0f1975f6f28accff3286be4106538 (patch)
tree2be9544828545a2f9f0676efc6eb82ac197ec4bd /unittests/windowstests.py
parentea678ed82938ceac00682b2695b57193d36b71b4 (diff)
downloadmeson-optionrefactor3.zip
meson-optionrefactor3.tar.gz
meson-optionrefactor3.tar.bz2
Make all Meson level options overridable per subproject.optionrefactor3
Diffstat (limited to 'unittests/windowstests.py')
-rw-r--r--unittests/windowstests.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/unittests/windowstests.py b/unittests/windowstests.py
index f602d5f..9506a75 100644
--- a/unittests/windowstests.py
+++ b/unittests/windowstests.py
@@ -251,9 +251,15 @@ class WindowsTests(BasePlatformTests):
env=current_env)
# Check this has actually built the appropriate exes
- output_debug = subprocess.check_output(str(os.path.join(self.builddir+'_debug', 'genvslite.exe')))
- self.assertEqual( output_debug, b'Debug\r\n' )
- output_release = subprocess.check_output(str(os.path.join(self.builddir+'_release', 'genvslite.exe')))
+ exe_path = str(os.path.join(self.builddir+'_debug', 'genvslite.exe'))
+ self.assertTrue(os.path.exists(exe_path))
+ rc = subprocess.run([exe_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ self.assertEqual(rc.returncode, 0, rc.stdout + rc.stderr)
+ output_debug = rc.stdout
+ self.assertEqual(output_debug, b'Debug\r\n' )
+ exe_path = str(os.path.join(self.builddir+'_release', 'genvslite.exe'))
+ self.assertTrue(os.path.exists(exe_path))
+ output_release = subprocess.check_output([exe_path])
self.assertEqual( output_release, b'Non-debug\r\n' )
finally: