Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 2.04 KB

File metadata and controls

61 lines (48 loc) · 2.04 KB
description Fix compile errors then run and fix tests

Fix Command

Build, fix compile errors, then run and fix tests until everything passes.

Instructions

  1. Build the project:
cmake --build build
  1. If compile errors occur:

    • Read the error message carefully
    • Fix the issue in the source code
    • Rebuild and repeat until clean
  2. Run tests:

ctest --test-dir build --output-on-failure
  1. If tests fail:
    • Analyze the failure output
    • Fix the failing test or the code being tested
    • Re-run tests and repeat until all pass

Loop Structure

┌─────────────────────────────────────┐
│           Build Project             │
└──────────────┬──────────────────────┘
               │
               ▼
        ┌──────────────┐
        │ Compile OK?  │──No──▶ Fix Error ──┐
        └──────┬───────┘                    │
               │ Yes                        │
               ▼                            │
        ┌──────────────┐                    │
        │  Run Tests   │◀───────────────────┘
        └──────┬───────┘
               │
               ▼
        ┌──────────────┐
        │ Tests Pass?  │──No──▶ Fix Test ───┐
        └──────┬───────┘                    │
               │ Yes                        │
               ▼                            │
           ✓ Done ◀─────────────────────────┘

Based on Vinnie Falco's fix command from cppalliance/coro-io-context