+2017-11-16 Pedro Alves <palves@redhat.com>
+
+ * gdb.rust/modules.exp: Skip tests that rely on inferior I/O if
+ gdb,noinferiorio is set, and use gdb_test_stdio otherwise.
+
2017-11-16 Pedro Alves <palves@redhat.com>
* gdb.server/reconnect-ctrl-c.c: New file.
# https://github.com/rust-lang/rust/issues/33121
# gdb_test "call f2()" "lambda f2"
-gdb_test "call f3()" "mod1::inner::innest::f3"
-gdb_test "call self::f2()" "mod1::inner::innest::f2"
-gdb_test "call self::super::f2()" "mod1::inner::f2"
-gdb_test "call super::f2()" "mod1::inner::f2"
-gdb_test "call self::super::super::f2()" "mod1::f2"
-gdb_test "call super::super::f2()" "mod1::f2"
-gdb_test "call ::f2()" "::f2"
+if ![target_info exists gdb,noinferiorio] {
+ gdb_test_stdio "call f3()" "mod1::inner::innest::f3"
+ gdb_test_stdio "call self::f2()" "mod1::inner::innest::f2"
+ gdb_test_stdio "call self::super::f2()" "mod1::inner::f2"
+ gdb_test_stdio "call super::f2()" "mod1::inner::f2"
+ gdb_test_stdio "call self::super::super::f2()" "mod1::f2"
+ gdb_test_stdio "call super::super::f2()" "mod1::f2"
+ gdb_test_stdio "call ::f2()" "::f2"
+ gdb_test_stdio "call extern modules::mod1::f2()" "mod1::f2"
+}
gdb_test "call super::super::super::f2()" \
"Too many super:: uses from 'modules::mod1::inner::innest'"
-gdb_test "call extern modules::mod1::f2()" "mod1::f2"
gdb_test_sequence "ptype ::Generic::<::Generic<::Type> >" "" {
"type = struct modules::Generic<modules::Generic<modules::Type>> \\("