test1175: scan libcurl-errors.md, not the generated .3 version

Closes #14133
This commit is contained in:
Daniel Stenberg 2024-07-08 23:37:55 +02:00
parent 3f8066bf7c
commit fc84583ae3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -35,9 +35,9 @@ my %error; # from the include file
my %docs; # from libcurl-errors.3 my %docs; # from libcurl-errors.3
sub getdocserrors { sub getdocserrors {
open(my $f, "<", "$root/docs/libcurl/libcurl-errors.3"); open(my $f, "<", "$root/docs/libcurl/libcurl-errors.md");
while(<$f>) { while(<$f>) {
if($_ =~ /^.IP \"(CURL[EM]_[^ \t\"]*)/) { if($_ =~ /^## (CURL[EM]_[^ ]*)/) {
my ($symbol) = ($1); my ($symbol) = ($1);
if($symbol =~ /OBSOLETE/) { if($symbol =~ /OBSOLETE/) {
; ;
@ -71,7 +71,7 @@ getdocserrors();
for(sort keys %error) { for(sort keys %error) {
if($error{$_} && !$docs{$_}) { if($error{$_} && !$docs{$_}) {
print "$_ is not in libcurl-errors.3\n"; print "$_ is not in libcurl-errors.md\n";
} }
} }