# This test fails on Win32 currently
if (platform != "Win64") Stop()

ShowFile("src/HotSwap_TLS.bf")
GotoText("//Test_Start")
ToggleBreakpoint()
RunWithCompiling()
StepOver()
StepOver()
StepOver()
StepOver()
StepOver()
StepOver()
StepOver()
StepOver()
AssertEvalEquals("val", "3")
AssertEvalEquals("ClassA.sTLS0", "3")
AssertEvalEquals("sThreadResult", "1")
StepOver()
StepOver()
StepOver()
AssertEvalEquals("sThreadResult", "2")
ToggleCommentAt("ClassA_TLS1")
ToggleCommentAt("Inc1_TLS1")
Compile()
AssertEvalEquals("ClassA.sTLS1", "0")
StepOver()
StepOver()
StepOver()
StepOver()
StepOver()
StepOver()
StepOver()
AssertEvalEquals("val", "3")
AssertEvalEquals("ClassA.sTLS1", "3")
AssertEvalEquals("sThreadResult", "1")
StepOver()
StepOver()
StepOver()
AssertEvalEquals("sThreadResult", "2")