summaryrefslogtreecommitdiff
path: root/platform/linuxbsd/os_linuxbsd.h
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2020-08-02 21:30:56 +0300
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2020-08-16 16:41:02 +0300
commit6f426c3360595593294d910471f3c30407bbd38f (patch)
tree697a2313e344bf294fc1a67851e2fb0e71d39dd5 /platform/linuxbsd/os_linuxbsd.h
parent87ae509905e6a4388588472b4edddb791aec56a4 (diff)
Port ClassDB tests to use doctest
Extracted the most minimal core initialization functionality from `setup()` and `setup2()` so that `ClassDB` could be tested properly (input, audio, rendering, physics etc, are excluded). Display and rendering servers/singletons are not initialized at all. Due to the fact that most subsystems are disabled, fixed various crashes in the process (in order): - `AcceptDialog` OK/cancel swap behavior (used `DisplayServer` while `register_scene_types()`); - `make_default_theme` which depends on `RenderingServer`; - `XRServer` singleton access while calling `register_modules_types()`; - hidden bug in a way joypads are cleaned up (MacOS and Linux only). Removed manual `ClassDB` init/cleanup calls from `test_validate_testing.h`. ClassDB tests: Co-authored-by: Ignacio Etcheverry <ignalfonsore@gmail.com>
Diffstat (limited to 'platform/linuxbsd/os_linuxbsd.h')
-rw-r--r--platform/linuxbsd/os_linuxbsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/os_linuxbsd.h b/platform/linuxbsd/os_linuxbsd.h
index 4295721c68..cd4fbd9db5 100644
--- a/platform/linuxbsd/os_linuxbsd.h
+++ b/platform/linuxbsd/os_linuxbsd.h
@@ -48,7 +48,7 @@ class OS_LinuxBSD : public OS_Unix {
bool force_quit;
#ifdef JOYDEV_ENABLED
- JoypadLinux *joypad;
+ JoypadLinux *joypad = nullptr;
#endif
#ifdef ALSA_ENABLED