From 6d09dd5cf74303c737b68d1237a6393cd35a3713 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 7 Sep 2011 11:41:30 +0000 Subject: [PATCH] Perf tests: minor fix in chart.py --- modules/ts/misc/chart.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ts/misc/chart.py b/modules/ts/misc/chart.py index 2f06af21c..822ce4b7f 100644 --- a/modules/ts/misc/chart.py +++ b/modules/ts/misc/chart.py @@ -121,7 +121,8 @@ if __name__ == "__main__": names = set() for pair in tests: sn = pair[0].shortName() - names.add(sn) + if len(pair[1]) > 1: + names.add(sn) if sn == sname: if len(pair[1]) != argsnum: print >> sys.stderr, "Error - unable to create chart tables for functions having different argument numbers" @@ -130,7 +131,7 @@ if __name__ == "__main__": arglists[i][pair[1][i]] = 1 if len(names) != 1: - print >> sys.stderr, "Error - unable to create chart tables for functions from different test suits:" + print >> sys.stderr, "Error - unable to create tables for functions from different test suits:" i = 1 for name in sorted(names): print >> sys.stderr, "%4s: %s" % (i, name)