* gdb.python/python.exp: Don't include full file name in test
name.
+2011-10-18 Tom Tromey <tromey@redhat.com>
+
+ * gdb.base/source.exp: Don't include full file name in test name.
+ * gdb.python/python.exp: Don't include full file name in test
+ name.
+
2011-10-18 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.base/attach-pie-noexec.c: New files.
}
}
-gdb_test "dir ${srcdir}/${subdir}" "Source directories searched: .*"
+gdb_test "dir ${srcdir}/${subdir}" "Source directories searched: .*" \
+ "set search directories"
gdb_test "source -s ./source-test.gdb" \
"test source options" \
"source -s"
# If Python is not supported, verify that sourcing a python script
# causes an error.
- gdb_test "source $srcdir/$subdir/source2.py" "Error in sourced command file:.*"
+ gdb_test "source $srcdir/$subdir/source2.py" \
+ "Error in sourced command file:.*" \
+ "source source2.py when python disabled"
return -1
}
-re "$gdb_prompt $" {}
"foo ()" "" \
"end" "hello, world!"
-gdb_test "source $srcdir/$subdir/source2.py" "yes"
+gdb_test "source $srcdir/$subdir/source2.py" "yes" "source source2.py"
gdb_test "python print gdb.current_objfile()" "None"
gdb_test "python print gdb.objfiles()" "\\\[\\\]"