File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 2828 o=` $prg $instfile 2>&1 `
2929 fi
3030 rm $instfile
31- o=` echo $o | tr -d $nl `
31+ o=` echo $o | tr -d ' \r\n ' `
3232 if [ " $OSTYPE " = " msys" ]; then o=` echo $o | xargs` ; fi
3333 if [ " $o " = " $2 " ]; then
3434 return 1
7777 massfile=` mktemp massif.out.XXXXXX`
7878 echo " $1 ; [$pre ; $pst ]" > $instfile
7979 valgrind --tool=massif --massif-out-file=$massfile --stacks=yes $prg $instfile > /dev/null 2>&1
80- snip=$( echo $1 | tr -d ' .' | tr ' /' ' _' | tr -d ' "' | tr -d $nl )
80+ snip=$( echo $1 | tr -d ' .' | tr ' /' ' _' | tr -d ' "' | tr -d ' \r\n ' )
8181 sed -i " s/mem_stacks_B=/$snip mem_stacks_B=/g" $massfile
8282 sed -i " s/mem_heap_B=/$snip mem_heap_B=/g" $massfile
8383 if [ -n " $pst " ]; then
9292nfl=0
9393nok=0
9494
95- nl=' \n' ;
96- if [ " $OSTYPE " = " msys" ]; then nl=' \r' ; fi
97-
9895for f in ` ls -t $tst /test.* ` ;
9996do
10097 tno=0
107104 tno=$(( $tno + 1 ))
108105 evl " $p " " $r " " $tno " " $f "
109106 s=$?
110- p=$( echo $p | tr $nl ' ' )
107+ p=$( echo $p | tr ' \r\n ' ' ' )
111108 if [ $s -eq 2 ]; then
112109 echo " LEAK -> $p "
113110 nok=$(( $nok + 1 ))
You can’t perform that action at this time.
0 commit comments