<s> """<STR_LIT>""" <EOL> import TestGyp <EOL> import os <EOL> import subprocess <EOL> import sys <EOL> def IgnoreOutput ( string , expected_string ) : <EOL> return True <EOL> def CompilerVersion ( compiler ) : <EOL> stdout = subprocess . check_output ( [ compiler , '<STR_LIT>' ] , stderr = subprocess . STDOUT ) <EOL> return stdout . rstrip ( '<STR_LIT:\n>' ) <EOL> def CompilerSupportsWarnAboutInvalidOffsetOfMacro ( test ) : <EOL> return '<STR_LIT>' not in CompilerVersion ( '<STR_LIT>' ) <EOL> if sys . platform == '<STR_LIT>' : <EOL> test = TestGyp . TestGyp ( formats = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> CHDIR = '<STR_LIT>' <EOL> test . run_gyp ( '<STR_LIT>' , chdir = CHDIR ) <EOL> targets = [ <EOL> '<STR_LIT>' , <EOL> ] <EOL> if CompilerSupportsWarnAboutInvalidOffsetOfMacro ( test ) : <EOL> targets . append ( '<STR_LIT>' ) <EOL> for target in targets : <EOL> test . build ( '<STR_LIT>' , target , chdir = CHDIR ) <EOL> test . built_file_must_exist ( target , chdir = CHDIR ) <EOL> fail_target = target + '<STR_LIT>' <EOL> test . build ( '<STR_LIT>' , fail_target , chdir = CHDIR , status = None , <EOL> stderr = None , match = IgnoreOutput ) <EOL> test . built_file_must_not_exist ( fail_target , chdir = CHDIR ) <EOL> test . pass_test ( ) </s>
