Skip to content

Commit 5fb6b8f

Browse files
committed
Add regtest for #277
1 parent 98206c4 commit 5fb6b8f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

test/engine/engine_test.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,3 +1192,22 @@ TEST(EngineTest, NoRefreshWhenCallingRunningBroadcast)
11921192
ASSERT_VAR(stage, "passed2");
11931193
ASSERT_TRUE(GET_VAR(stage, "passed2")->value().toBool());
11941194
}
1195+
1196+
TEST(EngineTest, NoStopWhenCallingRunningBroadcastFromCustomBlock)
1197+
{
1198+
// Regtest for #257
1199+
Project p("regtest_projects/277_custom_block_call_running_broadcast_stop.sb3");
1200+
ASSERT_TRUE(p.load());
1201+
p.run();
1202+
1203+
auto engine = p.engine();
1204+
1205+
Stage *stage = engine->stage();
1206+
ASSERT_TRUE(stage);
1207+
1208+
ASSERT_VAR(stage, "passed1");
1209+
ASSERT_TRUE(GET_VAR(stage, "passed1")->value().toBool());
1210+
1211+
ASSERT_VAR(stage, "passed2");
1212+
ASSERT_TRUE(GET_VAR(stage, "passed2")->value().toBool());
1213+
}
Binary file not shown.

0 commit comments

Comments
 (0)