From 329624aa75bd02c1ec3c32841ba2493b027b1d45 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 13 Sep 2010 16:40:08 -0300 Subject: [PATCH] mkmutest: Fix test case detection for x86_64 When using a 64 bits OS, nm shows the addresses of symbols using 64 bits instead of 32 (of course), so fix the symbol regex to detect those too. --- mkmutest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkmutest b/mkmutest index 763cc92..8806987 100755 --- a/mkmutest +++ b/mkmutest @@ -34,7 +34,7 @@ for file in "$@" do pr_file=`echo "$file" | sed 's/\"/\\\\\"/g'` suite=`basename "$file" .o | sed 's/\"/\\\\\"/g'` - symbols=`nm "$file" | egrep '^[[:xdigit:]]{8} T mu_\w+$' | cut -c12-` + symbols=`nm "$file" | egrep '^[[:xdigit:]]+ T mu_\w+$' | cut -d' ' -f3` tests=`echo "$symbols" | egrep '^mu_test'` inits=`echo "$symbols" | egrep '^mu_init'` terms=`echo "$symbols" | egrep '^mu_term'` -- 2.43.0