summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorIbrahim Esmat <iesmat@microsoft.com>2017-07-27 13:08:05 (GMT)
committerIbrahim Esmat <iesmat@microsoft.com>2017-07-27 13:08:05 (GMT)
commitb1a30ba5733531036223946538731a4057bb84e8 (patch)
treea3689955129223ac84eeb265c168e9f602a8ae3f /test
parentb9df77702c7c7c669b29e8a23af8932a2f30492e (diff)
downloadSCons-b1a30ba5733531036223946538731a4057bb84e8.zip
SCons-b1a30ba5733531036223946538731a4057bb84e8.tar.gz
SCons-b1a30ba5733531036223946538731a4057bb84e8.tar.bz2
Fix MSVC_UWP_APP test to take into account the MSVC_VERSION.
Missed a couple of messages on fail_test
Diffstat (limited to 'test')
-rw-r--r--test/MSVC/MSVC_UWP_APP.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/MSVC/MSVC_UWP_APP.py b/test/MSVC/MSVC_UWP_APP.py
index 1ffc917..19cd3f7 100644
--- a/test/MSVC/MSVC_UWP_APP.py
+++ b/test/MSVC/MSVC_UWP_APP.py
@@ -95,7 +95,9 @@ maj, min = msvc.msvc_version_to_maj_min(greatest_msvc_version_on_system)
# Test setting MSVC_UWP_APP is '1' (True)
test.run(arguments = "MSVC_UWP_APP=1")
(vclibstore_path_present, vclibstorerefs_path_present, msvc_version) = AreVCStoreLibPathsInLIBPATH(test.stdout())
-test.fail_test(msvc_version != greatest_msvc_version_on_system)
+test.fail_test(msvc_version != greatest_msvc_version_on_system,
+ message='MSVC_VERSION (%s) does not match expected greatest version on system (%s)' \
+ % (msvc_version, greatest_msvc_version_on_system))
# VS2015+
if maj >= 14:
test.fail_test((vclibstore_path_present is False) or (vclibstorerefs_path_present is False),
@@ -107,14 +109,18 @@ else:
# Test setting MSVC_UWP_APP is '0' (False)
test.run(arguments = "MSVC_UWP_APP=0")
(vclibstore_path_present, vclibstorerefs_path_present, msvc_version) = AreVCStoreLibPathsInLIBPATH(test.stdout())
-test.fail_test(msvc_version != greatest_msvc_version_on_system)
+test.fail_test(msvc_version != greatest_msvc_version_on_system,
+ message='MSVC_VERSION (%s) does not match expected greatest version on system (%s)' \
+ % (msvc_version, greatest_msvc_version_on_system))
test.fail_test((vclibstore_path_present is True) or (vclibstorerefs_path_present is True),
message='VC Store LIBPATHs present when MSVC_UWP_APP=0 (msvc_version=%s)' % msvc_version)
# Test not setting MSVC_UWP_APP
test.run(arguments = "")
(vclibstore_path_present, vclibstorerefs_path_present, msvc_version) = AreVCStoreLibPathsInLIBPATH(test.stdout())
-test.fail_test(msvc_version != greatest_msvc_version_on_system)
+test.fail_test(msvc_version != greatest_msvc_version_on_system,
+ message='MSVC_VERSION (%s) does not match expected greatest version on system (%s)' \
+ % (msvc_version, greatest_msvc_version_on_system))
test.fail_test((vclibstore_path_present is True) or (vclibstorerefs_path_present is True),
message='VC Store LIBPATHs present when MSVC_UWP_APP not set (msvc_version=%s)' % msvc_version)