From ab4035d522eede6e6fb9251b521ab9e030fa13e3 Mon Sep 17 00:00:00 2001 From: Leonard Lee Date: Mon, 19 Aug 2013 11:13:55 +0200 Subject: Add Q_ASSERT in qAllocMore() function. The negative range test is no longer needed in QByteArray's autotest. Task-number: QTBUG-33038 Change-Id: I4d77e78e485b3b64a31dffd99b9fe2c14420d0a2 (partial cherry picked from qtbase commit fb8be9905d5f3216edc3fbb72b8ce1c380737eac) (partial cherry picked from qtbase commit 0ed3cf2a1c487387bbc958317c791c9c53cf5a16) Reviewed-by: Thiago Macieira --- tests/auto/qbytearray/tst_qbytearray.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/qbytearray/tst_qbytearray.cpp b/tests/auto/qbytearray/tst_qbytearray.cpp index 1363dbfb30..e63a0aba43 100644 --- a/tests/auto/qbytearray/tst_qbytearray.cpp +++ b/tests/auto/qbytearray/tst_qbytearray.cpp @@ -1116,9 +1116,7 @@ void tst_QByteArray::toULongLong() void tst_QByteArray::qAllocMore() { static const int t[] = { - INT_MIN, INT_MIN + 1, -1234567, -66000, -1025, - -3, -1, 0, +1, +3, +1025, +66000, +1234567, INT_MAX - 1, INT_MAX, - INT_MAX/3 + 0, +1, +3, +1025, +66000, +1234567, INT_MAX/4 }; static const int N = sizeof(t)/sizeof(t[0]); -- cgit v1.2.3