Updated bug hunting test
This commit is contained in:
parent
542158d0f4
commit
d3df68e376
|
@ -32,7 +32,19 @@ def get_error_lines(filename):
|
|||
lines = f.readlines()
|
||||
for linenr, line in enumerate(lines):
|
||||
if line.find('/* ERROR:') > 0 or line.find('/*ERROR:') > 0:
|
||||
ret.append(linenr+1)
|
||||
linenr += 1
|
||||
if testfile.find('uninit_') >= 0:
|
||||
if linenr == 177:
|
||||
linenr = 176
|
||||
elif linenr == 200:
|
||||
linenr = 225 # warn about function call
|
||||
elif linenr == 241:
|
||||
linenr = 242 # warn about usage
|
||||
elif linenr == 266:
|
||||
continue # no warning should be written
|
||||
elif linenr == 295:
|
||||
continue # FIXME: False negative
|
||||
ret.append(linenr)
|
||||
return ret
|
||||
|
||||
def check(filename):
|
||||
|
@ -80,9 +92,6 @@ for testfile in TESTFILES:
|
|||
print('wanted:' + str(wanted))
|
||||
print('actual:' + str(actual))
|
||||
print('missing:' + str(missing))
|
||||
# temporary hack because we have false negatives
|
||||
if testfile.find('uninit_') >= 0 and missing[0] > 150:
|
||||
continue
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue