assert_abort

September 14, 2025 ยท View on GitHub

Shows how to use xtd::tunit::assert::abort method.

Sources

  • src/assert_abort.cpp
  • CMakeLists.txt

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output

Start 1 test from 1 test case
Run tests:
  ABORTED test.test_case_aborted (0 ms total)
    Test aborted

Test results:
  ABORTED 1 test.
End 1 test from 1 test case ran. (0 ms total)

Contents

  1. 1Sources
  2. 2Build and run
  3. 3Output