Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / gdb / invalid_memory.py
1 # -*- python -*-
2 # Copyright (c) 2013 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.
5
6 import gdb_test
7
8
9 class InvalidMemoryTest(gdb_test.GdbTest):
10
11   def test_invalid_memory(self):
12     self.gdb.ExpectToFailCommand('x 0x1000000')
13     self.gdb.Command('break *0x1000000')
14     # GDB sets breakpoints on "continue" and similar commands and removes them
15     # when program stops, so it is continue command that we expect to fail.
16     self.gdb.ExpectToFailCommand('continue')
17
18
19 if __name__ == '__main__':
20   gdb_test.Main()