Remove path name from test
authorTom Tromey <tom@tromey.com>
Sat, 21 Jan 2023 21:59:16 +0000 (14:59 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 22 Jan 2023 21:27:49 +0000 (14:27 -0700)
The test suite reports several path names in tests.  I couldn't find
most of these, and I suspect they are false reports, but I did manage
to locate one.  This one is probably harmless, as I think the path
does not vary; but it's also easy to fix and suppress one warning.

gdb/testsuite/gdb.python/py-parameter.exp

index 09a03083d03011d080ba78b31eb0b8bad5ac2383..c1f8a80c6b780a3700cea59f973380822069a1ba 100644 (file)
@@ -76,7 +76,8 @@ proc_with_prefix test_data_directory { } {
     set rel_path_to_output_dir \
        [file join "." [string replace ${abs_path_to_output_dir} 0 \
                            [string length ${abs_path_to_cwd}] ""]]
-    gdb_test_no_output "set data-directory ${rel_path_to_output_dir}"
+    gdb_test_no_output "set data-directory ${rel_path_to_output_dir}" \
+       "set data-directory to relative path"
 
     gdb_test "python print (gdb.parameter ('data-directory'))" \
        ${abs_path_to_output_dir} \