Index: test/ios/gyptest-extension.py |
diff --git a/test/ios/gyptest-extension.py b/test/ios/gyptest-extension.py |
index 81c019c05e6664f0e05c65b292c79647743d12b0..5bfc62b083164bf60ab159fa99e8abcf5f4b4529 100755 |
--- a/test/ios/gyptest-extension.py |
+++ b/test/ios/gyptest-extension.py |
@@ -10,11 +10,15 @@ Verifies that ios app extensions are built correctly. |
import TestGyp |
import TestMac |
+import subprocess |
+ |
+def CheckStrip(p, n_expected): |
+ if "ActionViewController" not in subprocess.check_output(['nm','-gU', p]): |
+ print "ActionViewController shouldn't get stripped out." |
+ test.fail_test() |
import sys |
if sys.platform == 'darwin' and TestMac.Xcode.Version()>="0600": |
- print "This test is currently disabled: https://crbug.com/483696." |
- sys.exit(0) |
test = TestGyp.TestGyp(formats=['ninja', 'xcode']) |
@@ -27,5 +31,10 @@ if sys.platform == 'darwin' and TestMac.Xcode.Version()>="0600": |
'ExtensionContainer.app/PlugIns/ActionExtension.appex', |
chdir='extension') |
+ path = test.built_file_path( |
+ 'ExtensionContainer.app/PlugIns/ActionExtension.appex/ActionExtension', |
+ chdir='extension') |
+ CheckStrip(path, "ActionViewController") |
+ |
test.pass_test() |