diff tests/js-directory/main.cpp @ 532:c59b87f66b67

CMake: share same resources, closes #725
author David Demelier <markand@malikania.fr>
date Thu, 16 Nov 2017 23:59:37 +0100
parents b3a0f61a35fe
children 194162717ec9
line wrap: on
line diff
--- a/tests/js-directory/main.cpp	Thu Nov 16 23:55:19 2017 +0100
+++ b/tests/js-directory/main.cpp	Thu Nov 16 23:59:37 2017 +0100
@@ -30,7 +30,7 @@
 BOOST_AUTO_TEST_CASE(constructor)
 {
     const std::string script(
-        "d = new Irccd.Directory(TESTS_BINARY_DIR + \"/root\");"
+        "d = new Irccd.Directory(CMAKE_SOURCE_DIR + \"/tests/root\");"
         "p = d.path;"
         "l = d.entries.length;"
     );
@@ -39,7 +39,7 @@
         throw dukx_exception(plugin_->context(), -1);
 
     duk_get_global_string(plugin_->context(), "l");
-    BOOST_TEST(duk_get_int(plugin_->context(), -1) == 2);
+    BOOST_TEST(duk_get_int(plugin_->context(), -1) == 3);
 }
 
 BOOST_AUTO_TEST_SUITE_END()