Back to index

enigmail  1.4.3
Public Member Functions
unit-expandlibs.TestSymbolOrder Class Reference

List of all members.

Public Member Functions

def test_getOrderedSections
def test_getFoldedSections
def test_getOrderedSectionsWithICF

Detailed Description

Definition at line 326 of file unit-expandlibs.py.


Member Function Documentation

def unit-expandlibs.TestSymbolOrder.test_getFoldedSections (   self)
Test ExpandMoreArgs' _getFoldedSections

Definition at line 341 of file unit-expandlibs.py.

00341 
00342     def test_getFoldedSections(self):
00343         '''Test ExpandMoreArgs' _getFoldedSections'''
00344         # Divert subprocess.Popen
00345         subprocess_popen = subprocess.Popen
00346         subprocess.Popen = SubprocessPopen(self)
00347         config.LD_PRINT_ICF_SECTIONS = '-Wl,--print-icf-sections'
00348         args = ExpandArgsMore(['foo', '-bar', 'bar.o', 'foo.o'])
00349         self.assertEqual(args._getFoldedSections(), {'.text.hello': '.text.hi', '.text.hi': ['.text.hello']})
00350         subprocess.Popen = subprocess_popen

Here is the call graph for this function:

def unit-expandlibs.TestSymbolOrder.test_getOrderedSections (   self)
Test ExpandMoreArgs' _getOrderedSections

Definition at line 327 of file unit-expandlibs.py.

00327 
00328     def test_getOrderedSections(self):
00329         '''Test ExpandMoreArgs' _getOrderedSections'''
00330         # Divert subprocess.Popen
00331         subprocess_popen = subprocess.Popen
00332         subprocess.Popen = SubprocessPopen(self)
00333         config.EXPAND_LIBS_ORDER_STYLE = 'linkerscript'
00334         config.OBJ_SUFFIX = '.o'
00335         config.LIB_SUFFIX = '.a'
00336         config.LD_PRINT_ICF_SECTIONS = ''
00337         args = ExpandArgsMore(['foo', '-bar', 'bar.o', 'foo.o'])
00338         self.assertEqual(args._getOrderedSections(['_Z6foobarv', '_Z6barbazv']), ['.text._Z6foobarv', '.text._ZThn4_6foobarv', '.text.hot._Z6barbazv'])
00339         self.assertEqual(args._getOrderedSections(['_ZThn4_6foobarv', '_Z6barbazv']), ['.text._Z6foobarv', '.text._ZThn4_6foobarv', '.text.hot._Z6barbazv'])
00340         subprocess.Popen = subprocess_popen

Here is the call graph for this function:

def unit-expandlibs.TestSymbolOrder.test_getOrderedSectionsWithICF (   self)
Test ExpandMoreArgs' _getOrderedSections, with ICF

Definition at line 351 of file unit-expandlibs.py.

00351 
00352     def test_getOrderedSectionsWithICF(self):
00353         '''Test ExpandMoreArgs' _getOrderedSections, with ICF'''
00354         # Divert subprocess.Popen
00355         subprocess_popen = subprocess.Popen
00356         subprocess.Popen = SubprocessPopen(self)
00357         config.EXPAND_LIBS_ORDER_STYLE = 'linkerscript'
00358         config.OBJ_SUFFIX = '.o'
00359         config.LIB_SUFFIX = '.a'
00360         config.LD_PRINT_ICF_SECTIONS = '-Wl,--print-icf-sections'
00361         args = ExpandArgsMore(['foo', '-bar', 'bar.o', 'foo.o'])
00362         self.assertEqual(args._getOrderedSections(['hello', '_Z6barbazv']), ['.text.hi', '.text.hello', '.text.hot._Z6barbazv'])
00363         self.assertEqual(args._getOrderedSections(['_ZThn4_6foobarv', 'hi', '_Z6barbazv']), ['.text._Z6foobarv', '.text._ZThn4_6foobarv', '.text.hi', '.text.hello', '.text.hot._Z6barbazv'])
00364         subprocess.Popen = subprocess_popen
00365 

Here is the call graph for this function:


The documentation for this class was generated from the following file: