Add an OS.crash() method for testing system crash handler

This makes it possible to test the system's crash handler without
having to modify engine code or exploit an engine bug.
This commit is contained in:
Hugo Locurcio 2021-12-03 20:36:47 +01:00
parent ea66ea9060
commit 5761b90f3c
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
3 changed files with 14 additions and 1 deletions

View file

@ -161,6 +161,7 @@ public:
int get_low_processor_usage_mode_sleep_usec() const;
void alert(const String &p_alert, const String &p_title = "ALERT!");
void crash(const String &p_message);
String get_executable_path() const;
int execute(const String &p_path, const Vector<String> &p_arguments, Array r_output = Array(), bool p_read_stderr = false);