Commit 56401457 authored by hjk's avatar hjk Committed by hjk

debugger: add semi-automated test to check return values.

Task-number: QTCREATORBUG-6894
Change-Id: I7682e27135a3cbc6011a6241fb7975d549ecd5d6
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 40ace549
......@@ -4757,11 +4757,44 @@ namespace basic {
dummyStatement(&n);
}
int testReturnInt()
{
return 1;
}
bool testReturnBool()
{
return true;
}
QString testReturnQString()
{
return "string";
}
void testReturn()
{
bool b = testReturnBool();
BREAK_HERE;
// Check b true bool.
// Continue.
int i = testReturnInt();
BREAK_HERE;
// Check i 1 int.
// Continue.
QString s = testReturnQString();
BREAK_HERE;
// Check s "string" QString.
// Continue.
dummyStatement(&i, &b, &s);
}
void testBasic()
{
testReference1();
testReference2();
testReference3("hello");
testReturn();
testArray1();
testArray2();
testArray3();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment