Index: gdb/testsuite/gdb.python/py-section-script.exp |
diff --git a/gdb/testsuite/gdb.python/py-section-script.exp b/gdb/testsuite/gdb.python/py-section-script.exp |
index 56fd792cc9c0ce1fe5e2d2d4eac42d96992b9dfd..8135b96fe766b44863649229123db3cb73adbc76 100644 |
--- a/gdb/testsuite/gdb.python/py-section-script.exp |
+++ b/gdb/testsuite/gdb.python/py-section-script.exp |
@@ -29,15 +29,9 @@ if {![istarget *-*-linux*] |
return |
} |
-if $tracelevel then { |
- strace $tracelevel |
-} |
+standard_testfile |
-set testfile "py-section-script" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
- untested "Couldn't compile ${srcfile}" |
+if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { |
return -1 |
} |
@@ -53,14 +47,15 @@ if { [skip_python_tests] } { continue } |
set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py] |
gdb_reinitialize_dir $srcdir/$subdir |
+gdb_test_no_output "set auto-load safe-path ${remote_python_file}" "set auto-load safe-path" |
gdb_load ${binfile} |
# Verify gdb loaded the script. |
-gdb_test "info auto-load-scripts" "Yes.*${testfile}.py.*full name: .*/${testfile}.py.*" |
+gdb_test "info auto-load python-scripts" "Yes.*${testfile}.py.*full name: .*/${testfile}.py.*" |
# Again, with a regexp this time. |
-gdb_test "info auto-load-scripts ${testfile}" "Yes.*${testfile}.py.*full name: .*/${testfile}.py.*" |
+gdb_test "info auto-load python-scripts ${testfile}" "Yes.*${testfile}.py.*full name: .*/${testfile}.py.*" |
# Again, with a regexp that matches no scripts. |
-gdb_test "info auto-load-scripts no-script-matches-this" \ |
+gdb_test "info auto-load python-scripts no-script-matches-this" \ |
"No auto-load scripts matching no-script-matches-this." |
if ![runto_main] { |