+ def test_address_trigger(self):
+ self.gdb.b("main:start")
+ self.gdb.c()
+ self.gdb.command("watch fox[13]");
+
+ output = self.gdb.c()
+ self.assertNotIn("Could not insert", output)
+ self.assertIn("rot13", output)
+ output = self.gdb.command("up")
+ self.assertIn("in main", output)
+ self.assertEqual(self.gdb.p_string("fox"),
+ "Gur dhvpx oebjn fox jumps of the lazy dog.")
+
+ output = self.gdb.c()
+ self.assertNotIn("Could not insert", output)
+ self.assertIn("rot13", output)
+ output = self.gdb.command("up")
+ self.assertIn("in main", output)
+ self.assertEqual(self.gdb.p_string("fox"),
+ "The quick browa sbk whzcf bs gur ynml qbt.")
+