summaryrefslogtreecommitdiff
path: root/tests/symbol-scan.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-03-18 15:42:58 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-03-18 15:42:58 +0100
commit4b51484a6890cd77e4f1a098829abaa86fda08fe (patch)
tree42adc66063187ccb5d32b2e7a7be18a73b9da37d /tests/symbol-scan.pl
parent89d412b5e7f98d692b399d3e20ed34bf2a4696e1 (diff)
downloadcurl-4b51484a6890cd77e4f1a098829abaa86fda08fe.tar.gz
symbol-scan.pl: detect duplicates
Test 1119 now also makes sure that symbols-in-versions doesn't contain any duplicates
Diffstat (limited to 'tests/symbol-scan.pl')
-rw-r--r--tests/symbol-scan.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/symbol-scan.pl b/tests/symbol-scan.pl
index cda9b7383..279053cb9 100644
--- a/tests/symbol-scan.pl
+++ b/tests/symbol-scan.pl
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2010-2011, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -82,6 +82,11 @@ open S, "<$root/docs/libcurl/symbols-in-versions";
while(<S>) {
if(/(^CURL[^ \n]*) *(.*)/) {
my ($sym, $rest)=($1, $2);
+ if($doc{$sym}) {
+ print "Detected duplicate symbol: $sym\n";
+ $misses++;
+ next;
+ }
$doc{$sym}=$sym;
my @a=split(/ +/, $rest);
if($a[2]) {