From 4b51484a6890cd77e4f1a098829abaa86fda08fe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 18 Mar 2011 15:42:58 +0100 Subject: symbol-scan.pl: detect duplicates Test 1119 now also makes sure that symbols-in-versions doesn't contain any duplicates --- tests/symbol-scan.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, , et al. +# Copyright (C) 2010-2011, Daniel Stenberg, , 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() { 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]) { -- cgit v1.2.3