Skip to content

Tests fail when building with embedded CA bundle due to additional output #21970

Description

@rainerjung

I did this

building curl with "--with-ca-embed=" lets the following tests fail:

TESTFAIL: These test cases failed: 24 220 360 371 387 418 421 433 469 470 728 749 750 794 978 994 996 1007 1067 1148 1188 1268 1278 1457 1471 1472 1489 1491
This is due to the following two additional output lines, that are not expected by the test definitions:

Note: Using embedded CA bundle (NNN bytes)[CR][LF]
or
Note: Using embedded CA bundle (NNN bytes)[LF]

and

Note: Using embedded CA bundle, for proxies (NNN bytes)[CR][LF]
or
Note: Using embedded CA bundle, for proxies (NNN bytes)[LF]

I checked the docs about writing tests but didn't find a way to ignore such lines in a sort of global configuration. As a work around, I patched the tests, which were failing for my build with ither

<stripfile>
s/^Note: Using embedded CA bundle.*\n//
</stripfile>

or in some cases more specific

<stripfile2>
s/^Note: Using embedded CA bundle.*\n//
</stripfile2>

i will attach the patch I used. Of course there could be other tests failing, which were skipped for my build. So a global ignore list would be nice.

I expected the following

_No failure.

curl/libcurl version

curl 8.20.0

operating system

EL Linux 8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions