Index: gdb/testsuite/gdb.python/py-events.exp |
diff --git a/gdb/testsuite/gdb.python/py-events.exp b/gdb/testsuite/gdb.python/py-events.exp |
index 6b655bbb57dfa5c44f82422b2873c95b5b8ddeca..390a2bad30b229ec4e127502a5b667a877b3ac2e 100644 |
--- a/gdb/testsuite/gdb.python/py-events.exp |
+++ b/gdb/testsuite/gdb.python/py-events.exp |
@@ -1,4 +1,4 @@ |
-# Copyright (C) 2010-2012 Free Software Foundation, Inc. |
+# Copyright (C) 2010-2013 Free Software Foundation, Inc. |
# This program is free software; you can redistribute it and/or modify |
# it under the terms of the GNU General Public License as published by |
@@ -43,9 +43,9 @@ clean_restart ${testfile} |
if { [skip_python_tests] } { continue } |
-gdb_test_no_output "python execfile ('${pyfile}')" "" |
+gdb_test_no_output "python exec (open ('${pyfile}').read ())" "" |
-gdb_test "Test_Newobj_Events" "New ObjectFile Event tester registered." "Register new objfile event handler" |
+gdb_test "test-objfile-events" "Object file events registered." |
gdb_breakpoint "main" {temporary} |
@@ -53,7 +53,7 @@ gdb_test "run" ".*event type: new_objfile.*new objfile name.*" "New objfile noti |
gdb_test_no_output "set detach-on-fork off" "" |
-gdb_test "Test_Events" "Event testers registered." |
+gdb_test "test-events" "Event testers registered." |
gdb_breakpoint "first" |
gdb_breakpoint "first" |