Remove Q_ASSERT from qcompleter autotest.

Replace obscure failure on bad test data in debug builds with an
informative warning in all builds.

Change-Id: I9001820f34de2f78bf296a2f0e095ce73d9ac4bd
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 34c077faae538adc12d4aa28113640570dfc8728)
This commit is contained in:
Jason McDonald 2011-04-20 11:05:55 +10:00 committed by Rohan McGovern
parent 94a7d439f2
commit 8ccb06a718

View File

@ -277,7 +277,9 @@ retry:
case 'L': row = completer->completionCount() - 1; break;
case 'F': row = 0; break;
default:
Q_ASSERT(false);
QFAIL(qPrintable(QString(
"Problem with 'step' value in test data: %1 (only P, N, L and F are allowed)."
).arg(step[i])));
}
completer->setCurrentRow(row);
}