check that controller is actually created!
This commit is contained in:
parent
2c5cab2fa1
commit
fa9cd75463
|
@ -63,6 +63,9 @@ public class ControllerCreationTest {
|
||||||
Display.setFullscreen(fullscreen);
|
Display.setFullscreen(fullscreen);
|
||||||
Display.create();
|
Display.create();
|
||||||
|
|
||||||
|
if(!Controller.isCreated()) {
|
||||||
|
throw new Exception("Controller could not be created");
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
|
|
Loading…
Reference in New Issue