-#!/usr/bin/python
+#!/usr/bin/env python
import os
import sys
def test_function_call(self):
self.gdb.b("main:start")
self.gdb.c()
- text = "Howdy, Earth!"
- gdb_length = self.gdb.p('strlen("%s")' % text)
- self.assertEqual(gdb_length, len(text))
+ self.assertEqual(self.gdb.p('fib(6)'), 8)
+ self.assertEqual(self.gdb.p('fib(7)'), 13)
self.exit()
def test_change_string(self):
def test_turbostep(self):
"""Single step a bunch of times."""
+ self.gdb.b("main:start")
+ self.gdb.c()
self.gdb.command("p i=0");
last_pc = None
advances = 0