Remove nm's -p switch so alphabetic order is used to get the test suite
symbols (test cases and initialization/termination functions). This way
execution order can be deterministic.
do
pr_file=`echo "$file" | sed 's/\"/\\\\\"/g'`
suite=`basename "$file" .o | sed 's/\"/\\\\\"/g'`
- symbols=`nm -p "$file" | egrep '^[[:xdigit:]]{8} T mu_\w+$' | cut -c12-`
+ symbols=`nm "$file" | egrep '^[[:xdigit:]]{8} T mu_\w+$' | cut -c12-`
tests=`echo "$symbols" | egrep '^mu_test'`
inits=`echo "$symbols" | egrep '^mu_init'`
terms=`echo "$symbols" | egrep '^mu_term'`
cases_re = re.compile(r'[0-9a-f]{8} T (mu_test\w*)', re.I)
def __init__(self, so_name):
- proc = Popen(['nm', '-p', so_name], stdout=PIPE)
+ proc = Popen(['nm', so_name], stdout=PIPE)
output = proc.communicate()[0]
self.inits = self.inits_re.findall(output)
self.terms = self.terms_re.findall(output)