mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-12-28 08:34:23 +03:00
x86: Make the test suite more verbose on translation errors
This makes debugging easier
This commit is contained in:
parent
563547fee5
commit
cc165d7316
@ -96,7 +96,7 @@ testDiscovery expectedFilename elf =
|
||||
unless (S.member addr ignoredBlocks) $ do
|
||||
let term = blockTerminator pb
|
||||
T.assertBool ("Unclassified block at " ++ show (MD.pblockAddr pb)) (not (isClassifyFailure term))
|
||||
T.assertBool ("Translate error at " ++ show (MD.pblockAddr pb)) (not (isTranslateError term))
|
||||
T.assertBool ("Translate error at " ++ show (MD.pblockAddr pb) ++ " " ++ show term) (not (isTranslateError term))
|
||||
let actualEntry = MD.discoveredFunAddr dfi
|
||||
-- actualEntry = fromIntegral (MM.addrValue (MD.discoveredFunAddr dfi))
|
||||
let actualBlockStarts = S.fromList [ (addr, toInteger (MD.blockSize pbr))
|
||||
|
Loading…
Reference in New Issue
Block a user