<s> """<STR_LIT>""" <EOL> import TestCmd <EOL> import TestGyp <EOL> import sys <EOL> if sys . platform == '<STR_LIT>' : <EOL> expected_error = '<STR_LIT>' <EOL> saw_expected_error = [ False ] <EOL> def match ( a , b ) : <EOL> if a == b : <EOL> return True <EOL> if not TestCmd . is_List ( a ) : <EOL> a = a . split ( '<STR_LIT:\n>' ) <EOL> if not TestCmd . is_List ( b ) : <EOL> b = b . split ( '<STR_LIT:\n>' ) <EOL> if expected_error in '<STR_LIT:\n>' . join ( a ) + '<STR_LIT:\n>' . join ( b ) : <EOL> saw_expected_error [ <NUM_LIT:0> ] = True <EOL> return True <EOL> return False <EOL> test = TestGyp . TestGyp ( formats = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , match = match ) <EOL> test . run_gyp ( '<STR_LIT>' , chdir = '<STR_LIT>' ) <EOL> test . build ( '<STR_LIT>' , test . ALL , chdir = '<STR_LIT>' ) <EOL> if test . format in [ '<STR_LIT>' , '<STR_LIT>' ] and expected_error in test . stdout ( ) : <EOL> saw_expected_error [ <NUM_LIT:0> ] = True <EOL> if saw_expected_error [ <NUM_LIT:0> ] : <EOL> test . pass_test ( ) <EOL> else : <EOL> test . fail_test ( ) </s>
