Skip to content

Commit 709d86d

Browse files
committed
formatting and ems-ubuntu test
1 parent 6f7d3f1 commit 709d86d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/xinterpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ __get_cxx_version ()
133133

134134
auto input_guard = input_redirection(config.allow_stdin);
135135

136-
if(code.find("%undo") != 0)
136+
if (code.find("%undo") != 0)
137137
{
138138
// Check for magics
139139
for (auto& pre : preamble_manager.preamble)

test/test_interpreter.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,10 +1077,16 @@ TEST_SUITE("file") {
10771077
}
10781078
}
10791079

1080-
#if !defined(XEUS_CPP_EMSCRIPTEN_WASM_BUILD)
1080+
10811081
TEST_SUITE("undo_and_redefinition")
10821082
{
1083+
#if defined(XEUS_CPP_EMSCRIPTEN_WASM_BUILD)
1084+
TEST_CASE("RedefinitionAndUndoErrors"
1085+
* doctest::should_fail(true)
1086+
* doctest::description("TODO: Currently fails for the Emscripten build"))
1087+
#else
10831088
TEST_CASE("RedefinitionAndUndoErrors")
1089+
#endif
10841090
{
10851091
std::vector<const char*> Args = {/*"-v", "resource-dir", "..."*/};
10861092
xcpp::interpreter interpreter((int) Args.size(), Args.data());
@@ -1145,4 +1151,3 @@ TEST_SUITE("undo_and_redefinition")
11451151
REQUIRE(execute4["status"] == "error");
11461152
}
11471153
}
1148-
#endif

0 commit comments

Comments
 (0)