Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: test/win/gyptest-link-safeseh.py

Issue 790213007: msvs/ninja win: Fix support for ImageHasSafeExceptionHandlers (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Enable safeseh test for msvs, add MASM support to msvs Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pylib/gyp/msvs_emulation.py ('k') | test/win/linker-flags/safeseh.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/win/gyptest-link-safeseh.py
diff --git a/test/win/gyptest-link-safeseh.py b/test/win/gyptest-link-safeseh.py
index 0d840096327b95f8f1f1c72e28f7a558dcc88240..a54445c28d8524ad43fffc0c7faa007201f27295 100644
--- a/test/win/gyptest-link-safeseh.py
+++ b/test/win/gyptest-link-safeseh.py
@@ -13,7 +13,7 @@ import TestGyp
import sys
if sys.platform == 'win32':
- test = TestGyp.TestGyp(formats=['ninja'])
+ test = TestGyp.TestGyp()
CHDIR = 'linker-flags'
test.run_gyp('safeseh.gyp', chdir=CHDIR)
@@ -30,7 +30,11 @@ if sys.platform == 'win32':
# the safe exception handling feature. If any modules were not
# compatible with safe exception handling feature, the resulting image
# will not contain a table of safe exception handlers.
- if HasSafeExceptionHandlers('test_safeseh_default.exe'):
+ # However, the msvs IDE passes /SAFESEH to the linker by default, if
+ # ImageHasSafeExceptionHandlers is not set to false in the vcxproj file.
+ # We emulate this behavior in msvs_emulation.py, so 'test_safeseh_default'
+ # and 'test_safeseh_yes' are built identically.
+ if not HasSafeExceptionHandlers('test_safeseh_default.exe'):
test.fail_test()
if HasSafeExceptionHandlers('test_safeseh_no.exe'):
test.fail_test()
« no previous file with comments | « pylib/gyp/msvs_emulation.py ('k') | test/win/linker-flags/safeseh.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698