summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-23 17:09:11 +0100
committerNao Pross <naopross@thearcway.org>2019-01-23 17:09:36 +0100
commitd67447c90ef9bbb4abce24e425e698a846f1bd5d (patch)
treea28790170659abac3223eb75da629bf3c8c44236 /test
parentDelete build directory (diff)
parentFix bug in RAII jobs, debug session on ts3 (diff)
downloadflatland-d67447c90ef9bbb4abce24e425e698a846f1bd5d.tar.gz
flatland-d67447c90ef9bbb4abce24e425e698a846f1bd5d.zip
Merge branch 'raii-task'
Diffstat (limited to 'test')
-rw-r--r--test/task_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/task_test.cpp b/test/task_test.cpp
index e578bfd..76fb3b7 100644
--- a/test/task_test.cpp
+++ b/test/task_test.cpp
@@ -49,18 +49,18 @@ int main(int argc, char *argv[]) {
job f_job;
// test a function
- auto ciao_fn_task = f_job.make_task(hello);
+ auto hello_fn_task = f_job.make_task(hello);
// test a function ad make the pointer go out of scope
{
- auto hello_fn_task = f_job.make_task(ciao);
+ auto ciao_fn_task = f_job.make_task(ciao);
}
- f_job.invoke_tasks();
+ f_job();
std::cout << std::endl;
std::cout << "Testing methods" << std::endl;
- std::cout << " should print once: today we have no motd!" << std::endl;
+ std::cout << "should print once: today we have no motd!" << std::endl;
job m_job;
// test a method
@@ -76,7 +76,7 @@ int main(int argc, char *argv[]) {
//
// hello!
// hello world!
- m_job.invoke_tasks();
+ m_job();
return 0;
}