Mercurial > irccd
comparison tests/js-system/main.cpp @ 566:bf56628e070b
Irccd: import new Duktape helpers
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Nov 2017 15:03:38 +0100 |
parents | 194162717ec9 |
children |
comparison
equal
deleted
inserted
replaced
565:194162717ec9 | 566:bf56628e070b |
---|---|
49 "f = Irccd.System.popen(\"" IRCCD_EXECUTABLE " --version\", \"r\");" | 49 "f = Irccd.System.popen(\"" IRCCD_EXECUTABLE " --version\", \"r\");" |
50 "r = f.readline();" | 50 "r = f.readline();" |
51 ); | 51 ); |
52 | 52 |
53 if (ret != 0) | 53 if (ret != 0) |
54 throw dukx_get_exception(plugin_->context(), -1); | 54 throw dukx_stack(plugin_->context(), -1); |
55 | 55 |
56 BOOST_TEST(duk_get_global_string(plugin_->context(), "r")); | 56 BOOST_TEST(duk_get_global_string(plugin_->context(), "r")); |
57 BOOST_TEST(duk_get_string(plugin_->context(), -1) == IRCCD_VERSION); | 57 BOOST_TEST(duk_get_string(plugin_->context(), -1) == IRCCD_VERSION); |
58 } | 58 } |
59 | 59 |