dmatest: define MAX_ERROR_COUNT constant