Skip to content

Commit db03cb3

Browse files
committed
trial 6
1 parent c31e755 commit db03cb3

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

test/test_interpreter.cpp

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ TEST_SUITE("execute_request")
7070
{
7171
TEST_CASE("stl")
7272
{
73-
std::vector<const char*> Args = {"stl-test-case", "-v"};
73+
std::vector<const char*> Args = {/*"-v", "resource-dir", "....."*/};
7474
xcpp::interpreter interpreter((int)Args.size(), Args.data());
7575
std::string code = "#include <vector>";
7676
nl::json user_expressions = nl::json::object();
@@ -99,42 +99,42 @@ TEST_SUITE("execute_request")
9999
REQUIRE(result["status"] == "ok");
100100
}
101101

102-
#if defined(XEUS_CPP_EMSCRIPTEN_WASM_BUILD)
103-
TEST_CASE("headers found in sysroot/include/compat")
104-
{
105-
std::vector<const char*> Args = {
106-
"-v",
107-
"-Xclang", "-iwithsysroot/include/compat"
108-
};
102+
// #if defined(XEUS_CPP_EMSCRIPTEN_WASM_BUILD)
103+
// TEST_CASE("headers found in sysroot/include/compat")
104+
// {
105+
// std::vector<const char*> Args = {
106+
// "-v",
107+
// "-Xclang", "-iwithsysroot/include/compat"
108+
// };
109109

110-
xcpp::interpreter interpreter((int)Args.size(), Args.data());
111-
std::string code = "#include <xlocale.h>";
112-
nl::json user_expressions = nl::json::object();
113-
xeus::execute_request_config config;
114-
config.silent = false;
115-
config.store_history = false;
116-
config.allow_stdin = false;
117-
nl::json header = nl::json::object();
118-
xeus::xrequest_context::guid_list id = {};
119-
xeus::xrequest_context context(header, id);
110+
// xcpp::interpreter interpreter((int)Args.size(), Args.data());
111+
// std::string code = "#include <xlocale.h>";
112+
// nl::json user_expressions = nl::json::object();
113+
// xeus::execute_request_config config;
114+
// config.silent = false;
115+
// config.store_history = false;
116+
// config.allow_stdin = false;
117+
// nl::json header = nl::json::object();
118+
// xeus::xrequest_context::guid_list id = {};
119+
// xeus::xrequest_context context(header, id);
120120

121-
std::promise<nl::json> promise;
122-
std::future<nl::json> future = promise.get_future();
123-
auto callback = [&promise](nl::json result) {
124-
promise.set_value(result);
125-
};
121+
// std::promise<nl::json> promise;
122+
// std::future<nl::json> future = promise.get_future();
123+
// auto callback = [&promise](nl::json result) {
124+
// promise.set_value(result);
125+
// };
126126

127-
interpreter.execute_request(
128-
std::move(context),
129-
std::move(callback),
130-
code,
131-
std::move(config),
132-
user_expressions
133-
);
134-
nl::json result = future.get();
135-
REQUIRE(result["status"] == "ok");
136-
}
137-
#endif
127+
// interpreter.execute_request(
128+
// std::move(context),
129+
// std::move(callback),
130+
// code,
131+
// std::move(config),
132+
// user_expressions
133+
// );
134+
// nl::json result = future.get();
135+
// REQUIRE(result["status"] == "ok");
136+
// }
137+
// #endif
138138

139139
// TEST_CASE("fetch_documentation")
140140
// {

0 commit comments

Comments
 (0)