summaryrefslogtreecommitdiffstats
path: root/tests/auto/build/tst_build.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/build/tst_build.cpp')
-rw-r--r--tests/auto/build/tst_build.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/build/tst_build.cpp b/tests/auto/build/tst_build.cpp
index c557d34..2574f61 100644
--- a/tests/auto/build/tst_build.cpp
+++ b/tests/auto/build/tst_build.cpp
@@ -1,6 +1,5 @@
#include <QtTest/QtTest>
#include <coroutine.h>
-#include <coroutinebuild.h>
class tst_build: public QObject
{
@@ -33,7 +32,7 @@ static void fnArg(int start)
void tst_build::staticFn()
{
- Coroutine* c1 = build(32000, &fnNoArg);
+ Coroutine* c1 = Coroutine::build(32000, &fnNoArg);
QCOMPARE(fnCounter, -99);
QCOMPARE(c1->cont(), true);
QCOMPARE(fnCounter, 0);
@@ -43,7 +42,7 @@ void tst_build::staticFn()
QCOMPARE(fnCounter, 2);
delete c1;
- Coroutine* c2 = build(32000, &fnArg, 40);
+ Coroutine* c2 = Coroutine::build(32000, &fnArg, 40);
QCOMPARE(c2->cont(), true);
QCOMPARE(fnCounter, 40);
QCOMPARE(c2->cont(), true);