diff options
| author | Ajax <commial@gmail.com> | 2015-04-21 17:02:38 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-04-24 08:11:36 +0200 |
| commit | 1e89f82a021aedb1d6d279b09d84285c80b78180 (patch) | |
| tree | 859c9d3144d4a08ee31995d8eae82d23ce87f222 /test/analysis/depgraph.py | |
| parent | 8797f3e11ec42747ed1593924df22fd00271e85a (diff) | |
| download | miasm-1e89f82a021aedb1d6d279b09d84285c80b78180.tar.gz miasm-1e89f82a021aedb1d6d279b09d84285c80b78180.zip | |
TestDepgraph: Bad counter name (credits C. Leman)
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): |