diff --git a/.travis.yml b/.travis.yml index 7d5f68f2..de59c98d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,9 +17,11 @@ env: - ARCH=x86_64 CONFIG=default - ARCH=x86_64 CONFIG=minimal - ARCH=x86_64 CONFIG=x11 + - ARCH=x86_64 CONFIG=console - ARCH=x86 CONFIG=default - ARCH=x86 CONFIG=minimal - ARCH=x86 CONFIG=x11 + - ARCH=x86 CONFIG=console # No-one cares about OS X x86 and X11 on OSX matrix: diff --git a/src/dlangui/platforms/console/consoleapp.d b/src/dlangui/platforms/console/consoleapp.d index 020668c8..335d4d18 100644 --- a/src/dlangui/platforms/console/consoleapp.d +++ b/src/dlangui/platforms/console/consoleapp.d @@ -504,12 +504,16 @@ extern(C) int DLANGUImain(string[] args) { Log.i("Entering UIAppMain: ", args); int result = -1; - try { - result = UIAppMain(args); - Log.i("UIAppMain returned ", result); - } catch (Exception e) { - Log.e("Abnormal UIAppMain termination"); - Log.e("UIAppMain exception: ", e); + version (unittest) { + result = 0; + } else { + try { + result = UIAppMain(args); + Log.i("UIAppMain returned ", result); + } catch (Exception e) { + Log.e("Abnormal UIAppMain termination"); + Log.e("UIAppMain exception: ", e); + } } Platform.setInstance(null);