Set window title from test name

This commit is contained in:
baldurk
2019-10-24 17:32:52 +01:00
parent 3a2a89d10a
commit cc0a539364
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -498,6 +498,7 @@ Usage: %s Test_Name [test_options]
{
TEST_LOG("\n\n======\nRunning %s\n\n", test.Name);
test.test->Prepare(argc, argv);
test.test->SetName(test.Name);
if(!test.IsAvailable())
{
+1
View File
@@ -162,6 +162,7 @@ struct GraphicsTest
virtual GraphicsWindow *MakeWindow(int width, int height, const char *title) { return NULL; }
virtual int main() { return 9; }
virtual void Prepare(int argc, char **argv);
virtual void SetName(const char *name) { screenTitle = name; }
virtual bool Init();
virtual void Shutdown();