minor clean-up

This commit is contained in:
Brian Paul
2002-11-08 15:49:31 +00:00
parent 2c9e7ae38b
commit 0b0245c160

View File

@@ -1,12 +1,13 @@
#!/usr/bin/env python #!/usr/bin/env python
# $Id: getprocaddress.py,v 1.1 2002/11/08 15:35:47 brianp Exp $ # $Id: getprocaddress.py,v 1.2 2002/11/08 15:49:31 brianp Exp $
# Helper for the getprocaddress.c test. # Helper for the getprocaddress.c test.
import re, string import re, string
def PrintHead(): def PrintHead():
print """ print """
struct name_test_pair { struct name_test_pair {
@@ -46,7 +47,6 @@ def FindTestFunctions():
v = re.search("^test_([a-zA-Z0-9]+)", line) v = re.search("^test_([a-zA-Z0-9]+)", line)
if v: if v:
func = v.group(1) func = v.group(1)
#print "Found -%s-" % func
functions.append(func) functions.append(func)
f.close f.close
return functions return functions
@@ -72,7 +72,6 @@ def PrintFunctions(specFile, tests):
print ' { "-%s", NULL},' % category print ' { "-%s", NULL},' % category
prevCategory = category prevCategory = category
# if HaveTest("gl" + funcName):
if funcName in tests: if funcName in tests:
test = "test_%s" % funcName test = "test_%s" % funcName
else: else: