]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1175: scan libcurl-errors.md, not the generated .3 version
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jul 2024 21:37:55 +0000 (23:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 9 Jul 2024 21:13:40 +0000 (23:13 +0200)
Closes #14133

tests/test1175.pl

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