Module: wine Branch: master Commit: 5661e9cdcab065bec30b6dd9ae0805a94daf657e URL: http://source.winehq.org/git/wine.git/?a=commit;h=5661e9cdcab065bec30b6dd9ae...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Thu Aug 4 11:50:44 2011 +0200
cmd/tests: Ensure failures are caught in all cases when an expected line ends with a '@'.
---
programs/cmd/tests/batch.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/programs/cmd/tests/batch.c b/programs/cmd/tests/batch.c index c4ccaab..67ecd3d 100644 --- a/programs/cmd/tests/batch.c +++ b/programs/cmd/tests/batch.c @@ -186,7 +186,8 @@ static const char *compare_line(const char *out_line, const char *out_end, const && !memcmp(exp_ptr, or_broken_cmd, sizeof(or_broken_cmd))) { exp_ptr = exp_end; continue; - } + }else if(out_ptr == out_end || *out_ptr != *exp_ptr) + err = out_ptr; }else if(out_ptr == out_end || *out_ptr != *exp_ptr) { err = out_ptr; }