changeset 526:5df38b4fbc55

Irccd: fix Irccd.Timer API due to missing new js_plugin::open
author David Demelier <markand@malikania.fr>
date Tue, 14 Nov 2017 20:25:30 +0100
parents d070d33bf4a0
children a88796ed040a
files libirccd-test/irccd/js_test.hpp tests/js-timer/main.cpp
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libirccd-test/irccd/js_test.hpp	Tue Nov 14 20:13:56 2017 +0100
+++ b/libirccd-test/irccd/js_test.hpp	Tue Nov 14 20:25:30 2017 +0100
@@ -69,6 +69,7 @@
         add<js_irccd_module>();
         add<Modules...>();
 
+        plugin_->open();
         plugin_->on_load(irccd_);
 
         // Add some CMake variables.
--- a/tests/js-timer/main.cpp	Tue Nov 14 20:13:56 2017 +0100
+++ b/tests/js-timer/main.cpp	Tue Nov 14 20:25:30 2017 +0100
@@ -37,7 +37,7 @@
 
 BOOST_AUTO_TEST_CASE(single)
 {
-    fixture f(DIRECTORY "/timer-single.js");
+    fixture f(CMAKE_CURRENT_SOURCE_DIR "/timer-single.js");
 
     boost::timer::cpu_timer timer;
 
@@ -50,7 +50,7 @@
 
 BOOST_AUTO_TEST_CASE(repeat)
 {
-    fixture f(DIRECTORY "/timer-repeat.js");
+    fixture f(CMAKE_CURRENT_SOURCE_DIR "/timer-repeat.js");
 
     boost::timer::cpu_timer timer;