Skip to content

Commit 7a440b8

Browse files
committed
trial 1
1 parent 207c592 commit 7a440b8

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

test/test_interpreter.cpp

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -68,39 +68,39 @@ class StreamRedirectRAII {
6868

6969
TEST_SUITE("execute_request")
7070
{
71-
TEST_CASE("stl")
72-
{
73-
std::vector<const char*> Args = {
74-
"-v",
75-
"-Xclang", "-iwithsysroot/include/compat"
76-
};
77-
xcpp::interpreter interpreter((int)Args.size(), Args.data());
78-
std::string code = "#include <vector>";
79-
nl::json user_expressions = nl::json::object();
80-
xeus::execute_request_config config;
81-
config.silent = false;
82-
config.store_history = false;
83-
config.allow_stdin = false;
84-
nl::json header = nl::json::object();
85-
xeus::xrequest_context::guid_list id = {};
86-
xeus::xrequest_context context(header, id);
87-
88-
std::promise<nl::json> promise;
89-
std::future<nl::json> future = promise.get_future();
90-
auto callback = [&promise](nl::json result) {
91-
promise.set_value(result);
92-
};
93-
94-
interpreter.execute_request(
95-
std::move(context),
96-
std::move(callback),
97-
code,
98-
std::move(config),
99-
user_expressions
100-
);
101-
nl::json result = future.get();
102-
REQUIRE(result["status"] == "ok");
103-
}
71+
// TEST_CASE("stl")
72+
// {
73+
// std::vector<const char*> Args = {
74+
// "-v",
75+
// "-Xclang", "-iwithsysroot/include/compat"
76+
// };
77+
// xcpp::interpreter interpreter((int)Args.size(), Args.data());
78+
// std::string code = "#include <vector>";
79+
// nl::json user_expressions = nl::json::object();
80+
// xeus::execute_request_config config;
81+
// config.silent = false;
82+
// config.store_history = false;
83+
// config.allow_stdin = false;
84+
// nl::json header = nl::json::object();
85+
// xeus::xrequest_context::guid_list id = {};
86+
// xeus::xrequest_context context(header, id);
87+
88+
// std::promise<nl::json> promise;
89+
// std::future<nl::json> future = promise.get_future();
90+
// auto callback = [&promise](nl::json result) {
91+
// promise.set_value(result);
92+
// };
93+
94+
// interpreter.execute_request(
95+
// std::move(context),
96+
// std::move(callback),
97+
// code,
98+
// std::move(config),
99+
// user_expressions
100+
// );
101+
// nl::json result = future.get();
102+
// REQUIRE(result["status"] == "ok");
103+
// }
104104

105105
TEST_CASE("headers found in sysroot/include/compat")
106106
{

0 commit comments

Comments
 (0)