diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-27 14:39:15 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-27 14:39:15 -0500 |
commit | 8b8f308fd387b4604613f67cf1ce7d30cfe95092 (patch) | |
tree | 8e383fcea2f101413a6d62a33677659f7af90841 | |
parent | 4d332f7191a86480c6f4a7305004395e21c71900 (diff) |
Use explicit output for test_autodebug
-rwxr-xr-x | tests/runner.py | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index ee107604..b73581f1 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -4445,7 +4445,27 @@ def process(filename): self.do_autodebug(filename) # Compare to each other, and to expected output - self.do_ll_run(path_from_root('tests', filename+'.o.ll.ll'), 'AD:') + self.do_ll_run(path_from_root('tests', filename+'.o.ll.ll'), '''AD:-1,15 +AD:15,0 +AD:21,5 +AD:24,6 +AD:27,101 +AD:30,7009 +AD:37,5 +AD:40,10 +AD:45,7009 +AD:48,7008 +AD:54,7008 +AD:57,7018 +AD:60,10 +AD:63,6 +AD:66,101 +AD:69,7018 +AD:73,101 +AD:77,7018 +AD:81,101 +AD:85,7018 +*10,6,101,7018,101,7018,101,7018*''') assert open('stdout').read().startswith('AD:-1'), 'We must note when we enter functions' # Test using build_ll_hook @@ -4464,7 +4484,17 @@ def process(filename): return 0; } ''' - self.do_run(src, 'AD:', build_ll_hook=self.do_autodebug) + self.do_run(src, '''AD:-1,13 +AD:13,0 +AD:16,25 +AD:20,51 +AD:23,25 +AD:26,25 +AD:29,11.520000 +AD:31,25 +AD:33,51 +AD:36,11.520000 +*25,51,11.52*''', build_ll_hook=self.do_autodebug) def test_profiling(self): src = ''' |