| 41 | EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter) |
| 42 | |
| 43 | bool FMjThreadPIERestart::RunTest(const FString& Parameters) |
| 44 | { |
| 45 | // First session |
| 46 | { |
| 47 | FMjUESession S; |
| 48 | if (!S.Init()) |
| 49 | { |
| 50 | AddError(FString::Printf(TEXT("First session Init() failed: %s"), *S.LastError)); |
| 51 | return false; |
| 52 | } |
| 53 | TestTrue(TEXT("First session: Manager should be initialized"), S.Manager->IsInitialized()); |
| 54 | S.Cleanup(); |
| 55 | } |
| 56 | |
| 57 | // Second session — verifies reinitalization after full shutdown |
| 58 | { |
| 59 | FMjUESession S2; |
| 60 | if (!S2.Init()) |
| 61 | { |
| 62 | AddError(FString::Printf(TEXT("Second session Init() failed: %s"), *S2.LastError)); |
| 63 | return false; |
| 64 | } |
| 65 | TestTrue(TEXT("Second session: Manager should be initialized after restart"), |
| 66 | S2.Manager->IsInitialized()); |
| 67 | S2.Cleanup(); |
| 68 | } |
| 69 | |
| 70 | return true; |
| 71 | } |
| 72 | |
| 73 | // ============================================================================ |
| 74 | // URLab.Thread.ConcurrentRead |
nothing calls this directly
no test coverage detected