diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-23 17:09:11 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-23 17:09:36 +0100 |
commit | d67447c90ef9bbb4abce24e425e698a846f1bd5d (patch) | |
tree | a28790170659abac3223eb75da629bf3c8c44236 /test | |
parent | Delete build directory (diff) | |
parent | Fix bug in RAII jobs, debug session on ts3 (diff) | |
download | flatland-d67447c90ef9bbb4abce24e425e698a846f1bd5d.tar.gz flatland-d67447c90ef9bbb4abce24e425e698a846f1bd5d.zip |
Merge branch 'raii-task'
Diffstat (limited to 'test')
-rw-r--r-- | test/task_test.cpp | 10 |
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; } |