File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -1077,10 +1077,16 @@ TEST_SUITE("file") {
10771077 }
10781078}
10791079
1080- # if !defined(XEUS_CPP_EMSCRIPTEN_WASM_BUILD)
1080+
10811081TEST_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
You can’t perform that action at this time.
0 commit comments