Add an easy way to test the debug_server crash window.

It's quite annoying to install the new debug_server and test with a
crashing app everytime. So add a DebugWindow app that just shows the
debug window and returns the result.

Change-Id: I7238057a508871ce3fffc493cb73126eb852d99e
Reviewed-on: https://review.haiku-os.org/c/1460
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Adrien Destugues
2019-06-08 16:24:17 +00:00
committed by waddlesplash
parent 515d86dace
commit e5a393474b
2 changed files with 26 additions and 0 deletions
@@ -0,0 +1,16 @@
/*
* Copyright 2019, Adrien Destugues <[email protected]>
* Distributed under terms of the MIT license.
*/
#include "DebugWindow.h"
#include <Application.h>
int main(void)
{
BApplication app("application/x-vnd.haiku-debugwindowtest");
DebugWindow* window = new DebugWindow("test");
return window->Go();
}
+10
View File
@@ -2,4 +2,14 @@ SubDir HAIKU_TOP src tests servers debug ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName $(HAIKU_TOP) src servers debug ] ;
UsePrivateHeaders shared ;
BinCommand crashing_app : crashing_app.cpp ;
SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src servers debug ] ;
SimpleTest DebugWindow :
DebugWindow.cpp DebugWindowTest.cpp
: be localestub shared
: debug_server.rdef
;