Пример #1
0
 def test_getFoldedSections(self):
     '''Test ExpandMoreArgs' _getFoldedSections'''
     # Divert subprocess.Popen
     subprocess_popen = subprocess.Popen
     subprocess.Popen = SubprocessPopen(self)
     config.LD_PRINT_ICF_SECTIONS = '-Wl,--print-icf-sections'
     args = ExpandArgsMore(['foo', '-bar', 'bar.o', 'foo.o'])
     self.assertEqual(args._getFoldedSections(), {'.text.hello': ['.text.hi'], '.text.hi': ['.text.hello']})
     subprocess.Popen = subprocess_popen
Пример #2
0
 def test_getFoldedSections(self):
     '''Test ExpandMoreArgs' _getFoldedSections'''
     # Divert subprocess.Popen
     subprocess_popen = subprocess.Popen
     subprocess.Popen = SubprocessPopen(self)
     config.LD_PRINT_ICF_SECTIONS = '-Wl,--print-icf-sections'
     args = ExpandArgsMore(['foo', '-bar', 'bar.o', 'foo.o'])
     self.assertEqual(args._getFoldedSections(), {'.text.hello': '.text.hi', '.text.hi': ['.text.hello']})
     subprocess.Popen = subprocess_popen
Пример #3
0
 def test_getFoldedSections(self):
     """Test ExpandMoreArgs' _getFoldedSections"""
     # Divert subprocess.Popen
     subprocess_popen = subprocess.Popen
     subprocess.Popen = SubprocessPopen(self)
     config.LD_PRINT_ICF_SECTIONS = "-Wl,--print-icf-sections"
     args = ExpandArgsMore(["foo", "-bar", "bar.o", "foo.o"])
     self.assertEqual(args._getFoldedSections(), {".text.hello": [".text.hi"], ".text.hi": [".text.hello"]})
     subprocess.Popen = subprocess_popen