diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-04-14 12:58:30 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-02-13 15:26:44 +0200 |
commit | 518c732ea9b0f1975f6f28accff3286be4106538 (patch) | |
tree | 2be9544828545a2f9f0676efc6eb82ac197ec4bd /unittests/windowstests.py | |
parent | ea678ed82938ceac00682b2695b57193d36b71b4 (diff) | |
download | meson-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.py | 12 |
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: |