Skip to content

Commit

Permalink
More debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Apr 23, 2021
1 parent 4c7f8de commit f29bc1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Expand Up @@ -30,7 +30,7 @@ jobs:
CMAKE_BUILD_PARALLEL_LEVEL: 3
CTEST_OUTPUT_ON_FAILURE: ON
shell: bash
run: cmake --build . --config $BUILD_TYPE
run: cmake --build . --config $BUILD_TYPE --target install

- name: Run Unit Tests
env:
Expand Down
11 changes: 11 additions & 0 deletions test/RadiantTest.h
Expand Up @@ -105,19 +105,30 @@ class RadiantTest :

try
{
std::cout << "Entering core module startup" << std::endl;

// Startup the application
_coreModule->get()->startup();

std::cout << "Core module startup done" << std::endl;
}
catch (const radiant::IRadiant::StartupFailure & ex)
{
// An unhandled exception during module initialisation => display a popup and exit
rError() << "Unhandled Exception: " << ex.what() << std::endl;
std::cout << "Unhandled Exception: " << ex.what() << std::endl;
abort();
}

std::cout << "Creating GL context" << std::endl;

_glContextModule->createContext();

std::cout << "Creating new map" << std::endl;

GlobalMapModule().createNewMap();

std::cout << "RadiantTest::Setup done" << std::endl;
}

/// Override this to perform custom actions before the main module shuts down
Expand Down

0 comments on commit f29bc1e

Please sign in to comment.