35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
|
diff -Ndur corosync-2.3.4/cts/agents/mem_leak_test.sh corosync-2.3.4-fix-bashisms/cts/agents/mem_leak_test.sh
|
||
|
--- corosync-2.3.4/cts/agents/mem_leak_test.sh 2014-08-12 10:27:36.000000000 +0300
|
||
|
+++ corosync-2.3.4-fix-bashisms/cts/agents/mem_leak_test.sh 2014-11-17 05:57:38.986640342 +0200
|
||
|
@@ -41,14 +41,14 @@
|
||
|
find $f | sed "s|\.|_|g" | sed "s|/|.|g" | while read l
|
||
|
do
|
||
|
echo $l.count u64 $COUNT >> $temp_file
|
||
|
- let COUNT="$COUNT+1"
|
||
|
+ COUNT=$((COUNT + 1))
|
||
|
done
|
||
|
|
||
|
corosync-cmapctl -p $temp_file
|
||
|
corosync-cmapctl -D usr
|
||
|
done
|
||
|
AFTER=$(get_mem $TYPE)
|
||
|
- let DIFF="$AFTER - $BEFORE"
|
||
|
+ DIFF=$((AFTER - BEFORE))
|
||
|
rm -f $temp_file
|
||
|
#echo $f diff $TYPE $DIFF
|
||
|
echo $DIFF
|
||
|
@@ -76,11 +76,11 @@
|
||
|
find /usr/bin | sed "s|\.|_|g" | sed "s|/|.|g" | while read l
|
||
|
do
|
||
|
corosync-cmapctl -s $l u32 $COUNT
|
||
|
- let COUNT="$COUNT+1"
|
||
|
+ COUNT=$((COUNT + 1))
|
||
|
done
|
||
|
corosync-cmapctl -D usr
|
||
|
AFTER=$(get_mem $TYPE)
|
||
|
- let DIFF="$AFTER - $BEFORE"
|
||
|
+ DIFF=$((AFTER - BEFORE))
|
||
|
echo $DIFF
|
||
|
|
||
|
exit 0
|