Ejemplo n.º 1
0
def SanitizeFlags_ArchRemoved_test():
    expected = ['-foo', '-bar']
    to_remove = ['-arch', 'arch_of_evil']

    eq_(expected, list(flags._SanitizeFlags(expected + to_remove)))

    eq_(expected, list(flags._SanitizeFlags(to_remove + expected)))

    eq_(expected,
        list(flags._SanitizeFlags(expected[:1] + to_remove + expected[-1:])))
Ejemplo n.º 2
0
def SanitizeFlags_ArchRemoved_test():
  expected = [ '-foo', '-bar' ]
  to_remove = [ '-arch', 'arch_of_evil' ]

  eq_( expected,
       list( flags._SanitizeFlags( expected + to_remove ) ) )

  eq_( expected,
       list( flags._SanitizeFlags( to_remove + expected ) ) )

  eq_( expected,
       list( flags._SanitizeFlags(
         expected[ :1 ] + to_remove + expected[ -1: ] ) ) )
Ejemplo n.º 3
0
def SanitizeFlags_Passthrough_test():
  eq_( [ '-foo', '-bar' ],
       list( flags._SanitizeFlags( [ '-foo', '-bar' ] ) ) )
Ejemplo n.º 4
0
def SanitizeFlags_Passthrough_test():
    eq_(['-foo', '-bar'], list(flags._SanitizeFlags(['-foo', '-bar'])))