2 # Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
9 class DetachTest(gdb_test.GdbTest):
11 def test_detach(self):
12 # Test that you can stop on a breakpoint, then detach and have the debugged
13 # program run to completion.
14 self.gdb.Command('break test_detach')
15 self.gdb.ResumeAndExpectStop('continue', 'breakpoint-hit')
19 # sel_ldr exits first because the test program runs to completion.
20 # Intentionally bypass superclass's tearDown as it assumes gdb exits first.
21 self.AssertSelLdrExits(expected_returncode=0)
26 if __name__ == '__main__':