Ensure GDB warnings are styled.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / style.exp
index 17b953838309742f223246c276aec023c6974d24..0457c3dc4ad0a61f0382720cbf07ef49aa34a01b 100644 (file)
@@ -139,4 +139,10 @@ save_vars { env(TERM) } {
 
     gdb_test "show logging file" \
        "The current logfile is \"[style .*? file]\"\\..*"
+
+    # Check warnings are styled by setting a rubbish data directory.
+    gdb_test "set data-directory Makefile" \
+       "warning: [style .*? file] is not a directory\\..*"
+    gdb_test "show data-directory" \
+       "GDB's data directory is \"[style .*? file]\"\\..*"
 }
This page took 0.034257 seconds and 4 git commands to generate.