cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
+@$out ${cwd}/tmp/log1.out
setdebug level=0 trace=0 hangup=50 client
@exec "sh -c 'touch $cwd/build/po/*'"
@exec "sh -c 'touch $cwd/build/src/dird/*'"
yes
wait
messages
+@$out ${cwd}/tmp/log3.out
+list jobs
quit
END_OF_DATA
check_two_logs
check_restore_diff
+
+nb_F=`awk -F '|' '/RestartJob.+F/ { gsub(/,/, ""); print $7}' $tmp/log3.out`
+nb_I=`awk -F '|' '/RestartJob.+I/ { gsub(/,/, ""); print $7}' $tmp/log3.out`
+nb1=`ls $cwd/build/po/* $cwd/build/src/dird/* | wc -l`
+nb1=`expr $nb1 + 50`
+
+if [ "$nb_I" -eq "$nb_F" ]; then
+ print_debug "ERROR: Incremental saves too much files (nb Incr == nb Full)"
+ estat=1
+fi
+
+if [ "$nb_I" -ge "$nb1" ]; then
+ print_debug "ERROR: Incremental saves too much files (more than $nb1)"
+ estat=1
+fi
+
end_test