diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2015-04-24 18:39:15 +0200 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2015-04-24 18:39:15 +0200 |
| commit | 4869a8b9d53aac5a448000a2616d427a2e338a9f (patch) | |
| tree | b701e96f7749a93ef155e582562672f394fc1c73 /test/analysis/depgraph.py | |
| parent | 8797f3e11ec42747ed1593924df22fd00271e85a (diff) | |
| parent | c090bf5343711729ea190efbfff34d28a2e0df45 (diff) | |
| download | miasm-4869a8b9d53aac5a448000a2616d427a2e338a9f.tar.gz miasm-4869a8b9d53aac5a448000a2616d427a2e338a9f.zip | |
Merge pull request #148 from commial/depgraph
Depgraph Implicit
Diffstat (limited to 'test/analysis/depgraph.py')
| -rw-r--r-- | test/analysis/depgraph.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/analysis/depgraph.py b/test/analysis/depgraph.py index a661d785..c5e41f64 100644 --- a/test/analysis/depgraph.py +++ b/test/analysis/depgraph.py @@ -615,15 +615,16 @@ for i, test in enumerate([(g1_ira, g1_input, [g1_output1]), g_list = list(g_list) ### Dump outputs graphs for debug means for j, result in enumerate(g_list): - open("graph_test_%02d_%02d.dot" % (i+1, j), "w").write(result.graph.dot()) + open("graph_test_%02d_%02d.dot" % (i + 1, j), + "w").write(result.graph.dot()) ### The number of results should be the same print " - - - number of results" assert(len(g_list) == len(g_test_list)) ### Match the right result (unordered) - for i, result in enumerate(g_list): - print " - - - result %d" % i + for j, result in enumerate(g_list): + print " - - - result %d" % j found = False for expected in g_test_list: if expected["graph"].__eq__(result.graph): |