OSDN Git Service

Debugger simple test case: Move BREAK_HERE
authorDaniel Teske <daniel.teske@nokia.com>
Fri, 13 Apr 2012 11:22:35 +0000 (13:22 +0200)
committerhjk <qthjk@ovi.com>
Sun, 15 Apr 2012 18:34:06 +0000 (20:34 +0200)
The manual tests can't be followed otherwise

Change-Id: I09f0b99a63bd5189dcd0dc74c53e310d78f0b083
Reviewed-by: hjk <qthjk@ovi.com>
tests/manual/debugger/simple/simple_test_app.cpp

index dda33f4..1da4407 100644 (file)
@@ -394,8 +394,6 @@ namespace peekandpoke {
     void testComplexWatchers()
     {
         struct S { int a; double b; } s[10];
-        for (int i = 0; i != 10; ++i)
-            s[i].a = i;
         BREAK_HERE;
         // Expand s and s[0].
         // CheckType s peekandpoke::S [10].
@@ -405,6 +403,9 @@ namespace peekandpoke {
         // Manual: Type    ['s[%d].a' % i for i in range(5)]
         // Manual: Expand it, continue stepping. This should result in a list
         // Manual: of five items containing the .a fields of s[0]..s[4].
+        for (int i = 0; i != 10; ++i)
+            s[i].a = i;
+
         dummyStatement(&s);
     }