Add copyright headers.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / readline.exp
index e545c37f7788e87a279ca644ee64ccbb4f6b9e2c..ef7fa130c80688c71f406fc82f663eab9cbdc442 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2002, 2003, 2007, 2008, 2009 Free Software Foundation, Inc.
+# Copyright 2002-2014 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
@@ -136,19 +136,20 @@ proc operate_and_get_next {name args} {
   }
 
   # Match the prompt so the next test starts at the right place.
-  gdb_test "" "" "$name - final prompt"
+  gdb_test "" ".*" "$name - final prompt"
 
   return 1
 }
 
 
-if $tracelevel {
-  strace $tracelevel
-}
-
 gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 
+if { ![readline_is_used] } {
+    unsupported "readline isn't used."
+    return -1
+}
+
 set oldtimeout1 $timeout
 set timeout 30
 
This page took 0.060579 seconds and 4 git commands to generate.