• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mendersoftware / mender / 2502703403
81%
master: 81%

Build:
Build:
LAST BUILD BRANCH: pr_1940
DEFAULT BRANCH: master
Ran 05 May 2026 11:46PM UTC
Jobs 1
Files 133
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 May 2026 11:20PM UTC coverage: 81.442% (+0.02%) from 81.426%
2502703403

push

gitlab-ci

lhoward
fix: common/error: include <ostream> for operator<<(ostream&, string&)

src/common/error.cpp defines

    std::ostream &operator<<(std::ostream &os, const Error &err) {
        os << err.String();
        ...
    }

err.String() returns std::string, so this relies on the free
function operator<<(std::ostream&, const std::string&) being a
complete definition at the call site, not just a forward declaration.

error.cpp only includes <common/error.hpp>, which in turn includes
<string> and <system_error>. Under libstdc++ that chain happens to
drag in the full body of the string ostream operator, so the call
gets inlined and the link succeeds. Under libc++, <string> only
provides a forward declaration (marked _LIBCPP_HIDE_FROM_ABI); the
body lives in <ostream>/<__ostream/basic_ostream.h>. Without that
include, the compiler emits an out-of-line call to a hidden-
visibility symbol that never gets defined and the link fails:

  undefined reference to 'std::operator<<[abi:...]<char, ...>(
    basic_ostream<char,...>&, const basic_string<char,...>&)'

Include <ostream> explicitly so the definition is reachable regardless
of which C++ standard library is in use.

Signed-off-by: Luke Howard <lukeh@padl.com>

9185 of 11278 relevant lines covered (81.44%)

20238.8 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
62.96
0.0% src/common/error.cpp
6
85.0
1.67% src/client_shared/inventory_parser/platform/c++17/inventory_parser.cpp
Jobs
ID Job ID Ran Files Coverage
1 2502703403.1 05 May 2026 11:46PM UTC 133
81.44
Source Files on build 2502703403
  • Tree
  • List 133
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • GitLab CI Build #2502703403
  • 7819a2fb on github
  • Prev Build on pr_1940 (#2467327637)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc