From 2ef610176828d477641224790379ccfdf51035cb Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Fri, 19 Feb 2010 10:13:44 +0100 Subject: [PATCH] cmd/tests: Compare strings case-insensitive. --- programs/cmd/tests/batch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/cmd/tests/batch.c b/programs/cmd/tests/batch.c index 0b4efda1d9d..ca40ada362e 100644 --- a/programs/cmd/tests/batch.c +++ b/programs/cmd/tests/batch.c @@ -110,7 +110,9 @@ static const char *compare_line(const char *out_line, const char *out_end, const if(exp_ptr+sizeof(pwd_cmd) <= exp_end && !memcmp(exp_ptr, pwd_cmd, sizeof(pwd_cmd))) { exp_ptr += sizeof(pwd_cmd); - if(out_end-out_ptr < workdir_len || memcmp(out_ptr, workdir, workdir_len)) + if(out_end-out_ptr < workdir_len + || (CompareStringA(LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE, out_ptr, workdir_len, + workdir, workdir_len) != CSTR_EQUAL)) return out_ptr; out_ptr += workdir_len; continue;