# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.
"""
Verifies that invalid strings files cause the build to fail. """
from __future__ import print_function
import TestCmd import TestGyp
import sys
if sys.platform == 'darwin':
print("This test is currently disabled: https://crbug.com/483696.")
sys.exit(0)
expected_error = 'Old-style plist parser: missing semicolon in dictionary'
saw_expected_error = [False] # Python2 has no "nonlocal" keyword. def match(a, b): if a == b: returnTrue ifnot TestCmd.is_List(a):
a = a.split('\n') ifnot TestCmd.is_List(b):
b = b.split('\n') if expected_error in'\n'.join(a) + '\n'.join(b):
saw_expected_error[0] = True returnTrue returnFalse
test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'], match=match)
# Ninja pipes stderr of subprocesses to stdout. if test.format in ['ninja', 'xcode-ninja'] \ and expected_error in test.stdout():
saw_expected_error[0] = True
if saw_expected_error[0]:
test.pass_test() else:
test.fail_test()
Messung V0.5
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.