diff options
| author | Glenn Smith <couleeapps@gmail.com> | 2019-05-31 16:51:53 -0400 |
|---|---|---|
| committer | Glenn Smith <couleeapps@gmail.com> | 2019-05-31 17:14:55 -0400 |
| commit | 9fdc708621d2364eca878cffeb4af991f2681e59 (patch) | |
| tree | 6e16938d59b47c6ec89e462018e442e40e37737b | |
| parent | f3eef0becfdf8a9c6d33420a289ffe6076955178 (diff) | |
Sort dominators so test results are deterministic
| m--------- | suite/binaries | 0 | ||||
| -rw-r--r-- | suite/testcommon.py | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/suite/binaries b/suite/binaries -Subproject 91b58bcfb27b25f49a150deff8fc224b869ac91 +Subproject 88baf8eff039adf2559368229781575a7989e86 diff --git a/suite/testcommon.py b/suite/testcommon.py index 2ad46f42..782f5e8d 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -381,9 +381,9 @@ class BinaryViewTestBuilder(Builder): retinfo = [] for func in self.bv.functions: for bb in func: - for dom in bb.dominators: + for dom in sorted(bb.dominators, key=lambda x: x.start): retinfo.append("Dominator: %x of %x" % (dom.start, bb.start)) - for pdom in bb.post_dominators: + for pdom in sorted(bb.post_dominators, key=lambda x: x.start): retinfo.append("PostDominator: %x of %x" % (pdom.start, bb.start)) return fixOutput(retinfo) |
