mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
test1175: scan libcurl-errors.md, not the generated .3 version
Closes #14133
This commit is contained in:
parent
3f8066bf7c
commit
fc84583ae3
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user