summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2010-03-23 11:18:23 +0100
committerChristian Kamm <christian.d.kamm@nokia.com>2010-03-26 13:05:03 +0100
commitf83809134d699ae3e0056eb3b674d657bd36c638 (patch)
treecad985db13e2b5537e0abff467c50191ebefc00c /tests
parent86153c191a6e0a6228d6d6c705a3e3271a4239be (diff)
Create a default stack if the user doesn't.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/basic/tst_basic.cpp1
-rw-r--r--tests/auto/build/tst_build.cpp2
2 files changed, 0 insertions, 3 deletions
diff --git a/tests/auto/basic/tst_basic.cpp b/tests/auto/basic/tst_basic.cpp
index 8ac7958..c33ef40 100644
--- a/tests/auto/basic/tst_basic.cpp
+++ b/tests/auto/basic/tst_basic.cpp
@@ -25,7 +25,6 @@ public:
void tst_basic::noYield()
{
NoYieldCoro coro;
- coro.createStack();
coro.i = 0;
QCOMPARE(coro.status(), Coroutine::NotStarted);
QCOMPARE(coro.cont(), false);
diff --git a/tests/auto/build/tst_build.cpp b/tests/auto/build/tst_build.cpp
index 3b94169..aa7243d 100644
--- a/tests/auto/build/tst_build.cpp
+++ b/tests/auto/build/tst_build.cpp
@@ -33,7 +33,6 @@ static void fnArg(int start)
void tst_build::staticFn()
{
Coroutine* c1 = Coroutine::build(&fnNoArg);
- c1->createStack();
QCOMPARE(fnCounter, -99);
QCOMPARE(c1->cont(), true);
QCOMPARE(fnCounter, 0);
@@ -44,7 +43,6 @@ void tst_build::staticFn()
delete c1;
Coroutine* c2 = Coroutine::build(&fnArg, 40);
- c2->createStack();
QCOMPARE(c2->cont(), true);
QCOMPARE(fnCounter, 40);
QCOMPARE(c2->cont(), true);