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

mendersoftware / mender / 2506081045
81%
master: 81%

Build:
Build:
LAST BUILD BRANCH: 5.1.x
DEFAULT BRANCH: master
Ran 07 May 2026 02:43AM 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

07 May 2026 02:30AM UTC coverage: 81.442%. Remained the same
2506081045

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.

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

9185 of 11278 relevant lines covered (81.44%)

20238.44 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
80.57
-0.47% src/mender-update/update_module/v3/update_module_download.cpp
Jobs
ID Job ID Ran Files Coverage
1 2506081045.1 07 May 2026 02:43AM UTC 133
81.44
Source Files on build 2506081045
  • Tree
  • List 133
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • GitLab CI Build #2506081045
  • dfd1fb41 on github
  • Prev Build on pr_1940 (#2502703403)
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