public class TestRunner : CoreUIApplication
{
private Window _firstPageWindow;
+ private static bool s_terminated;
public static string ResourceDir { get; private set; }
public TestRunner()
{
+ s_terminated = false;
}
protected override void OnCreate()
base.OnCreate();
}
+ protected override void OnTerminate()
+ {
+ s_terminated = true;
+ base.OnTerminate();
+ }
+
public void RunStandalone(string[] args)
{
ResourceDir = Path.Combine(Path.GetDirectoryName(typeof(TestRunner).GetTypeInfo().Assembly.Location), "res");
- Elementary.Initialize();
- Elementary.ThemeOverlay();
-
EcoreSynchronizationContext.Initialize();
var testCases = GetTestCases();
static void Main(string[] args)
{
+ Elementary.Initialize();
+ Elementary.ThemeOverlay();
+
TestRunner testRunner = new TestRunner();
testRunner.Run(args);
// if running with appfw is failed, below line will be executed.
- testRunner.RunStandalone(args);
+ if (!s_terminated)
+ {
+ testRunner.RunStandalone(args);
+ }
}
}
}