Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mcpplibs/tinyhttps
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: mcpplibs/tinyhttps
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/test-main-conflict
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 9, 2026

  1. fix(tests): drop redundant test_main.cpp main()

    mcpp expects the gtest dev-dep to provide `main` (gtest_main.cc, which
    the mcpp-index gtest descriptor compiles into libgtest.a). The
    hand-written `tests/test_main.cpp` body — `InitGoogleTest + RUN_ALL_TESTS`
    — is exactly what gtest_main does, and having both produces a
    `multiple definition of main` link error under `mcpp test`.
    
    The xmake test target was unaffected because xmake's gtest package
    ships gtest and gtest_main as separate libs; mcpp-index packs them
    together. Either way the convention `mcpp test` follows (and what mcpp's
    own tests rely on) is "let gtest_main provide main", so this file is
    just removed.
    Sunrisepeak committed May 9, 2026
    Configuration menu
    Copy the full SHA
    7122af9 View commit details
    Browse the repository at this point in the history
Loading