Skip to content

Commit

Permalink
Enable more engine tests (LLVM)
Browse files Browse the repository at this point in the history
  • Loading branch information
adazem009 committed Dec 29, 2024
1 parent 9a61a36 commit e8d2abe
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions test/engine/engine_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ TEST(EngineTest, Clear)
ScratchConfiguration::removeExtension(extension);
}

#ifndef USE_LLVM
TEST(EngineTest, ClearThreadAboutToStopSignal)
{
Project p("3_threads.sb3");
Expand Down Expand Up @@ -199,6 +198,7 @@ TEST(EngineTest, StopSignal)
}
}

#ifndef USE_LLVM
TEST(EngineTest, CompileAndExecuteMonitors)
{
Engine engine;
Expand Down Expand Up @@ -352,7 +352,6 @@ TEST(EngineTest, GlobalVolume)
engine.setGlobalVolume(92.36);
}

#ifndef USE_LLVM
TEST(EngineTest, Step)
{
Project p("step.sb3");
Expand All @@ -377,7 +376,6 @@ TEST(EngineTest, Step)
ASSERT_EQ(test2->value().toInt(), i > 1 ? 3 : 1);
}
}
#endif

TEST(EngineTest, EventLoop)
{
Expand Down Expand Up @@ -628,7 +626,6 @@ TEST(EngineTest, KeyState)
ASSERT_TRUE(engine.keyPressed("any"));
}

#ifndef USE_LLVM
TEST(EngineTest, WhenKeyPressed)
{
Project p("when_key_pressed.sb3");
Expand Down Expand Up @@ -894,7 +891,6 @@ TEST(EngineTest, MouseWheel)
ASSERT_VAR(stage, "any");
ASSERT_EQ(GET_VAR(stage, "any")->value().toInt(), 0);
}
#endif

TEST(EngineTest, MouseX)
{
Expand Down Expand Up @@ -1059,7 +1055,6 @@ TEST(EngineTest, Broadcasts)
ASSERT_EQ(engine.findBroadcastById("c"), 2);
}

#ifndef USE_LLVM
TEST(EngineTest, TargetClickScripts)
{
Project p("target_click_scripts.sb3");
Expand Down Expand Up @@ -1165,7 +1160,6 @@ TEST(EngineTest, TargetClickScripts)
ASSERT_VAR(stage, "stage");
ASSERT_EQ(GET_VAR(stage, "stage")->value().toInt(), 2);
}
#endif

TEST(EngineTest, Targets)
{
Expand Down Expand Up @@ -1872,6 +1866,7 @@ TEST(EngineTest, BroadcastsProject)
ASSERT_VAR(stage, "test5");
ASSERT_EQ(GET_VAR(stage, "test5")->value().toString(), "2 2 0 0");
}
#endif

TEST(EngineTest, StopAll)
{
Expand Down Expand Up @@ -1949,6 +1944,7 @@ TEST(EngineTest, StopOtherScriptsInSprite)
ASSERT_EQ(GET_VAR(stage, "l")->value().toInt(), 110);
}

#ifndef USE_LLVM
TEST(EngineTest, EdgeActivatedHats)
{
Project p("when_greater_than.sb3");
Expand Down Expand Up @@ -2057,7 +2053,6 @@ TEST(EngineTest, NoCrashOnBroadcastSelfCall)
p.run();
}

#ifndef USE_LLVM
TEST(EngineTest, NoRefreshWhenCallingRunningBroadcast)
{
// Regtest for #257
Expand All @@ -2078,6 +2073,7 @@ TEST(EngineTest, NoRefreshWhenCallingRunningBroadcast)
ASSERT_TRUE(GET_VAR(stage, "passed2")->value().toBool());
}

#ifndef USE_LLVM
TEST(EngineTest, NoStopWhenCallingRunningBroadcastFromCustomBlock)
{
// Regtest for #257
Expand All @@ -2096,6 +2092,7 @@ TEST(EngineTest, NoStopWhenCallingRunningBroadcastFromCustomBlock)
ASSERT_VAR(stage, "passed2");
ASSERT_TRUE(GET_VAR(stage, "passed2")->value().toBool());
}
#endif

TEST(EngineTest, ResetRunningHats)
{
Expand Down Expand Up @@ -2217,7 +2214,6 @@ TEST(EngineTest, NoCrashWithUndefinedVariableOrList)
ASSERT_EQ(list->id(), "}l+w#Er5y!:*gh~5!3t%");
ASSERT_TRUE(list->empty());
}
#endif

TEST(EngineTest, AlwaysStopCloneThreads)
{
Expand Down Expand Up @@ -2289,4 +2285,4 @@ TEST(EngineTest, BroadcastAndWaitCaseInsensitive)
ASSERT_VAR(stage, "passed");
ASSERT_TRUE(GET_VAR(stage, "passed")->value().toBool());
}
#endif // USE_LLVM
#endif

0 comments on commit e8d2abe

Please sign in to comment.