[testsuite] Make the testsuite work on mingw
[deliverable/binutils-gdb.git] / gdb / testsuite / lib / gdb.exp
index edc8dfcdfde80a547f34b74b781311701e1ecb29..af56e8aa128e669c6d425c8a324d1cdfd77b8ec6 100644 (file)
@@ -4724,6 +4724,10 @@ proc standard_output_file {basename} {
 
     set dir [make_gdb_parallel_path outputs $subdir $gdb_test_file_name]
     file mkdir $dir
+    # If running on MinGW, replace /c/foo with c:/foo
+    if { [ishost *-*-mingw*] } {
+        set dir [regsub {^/([a-z])/} $dir {\1:/}]
+    }
     return [file join $dir $basename]
 }
 
This page took 0.028192 seconds and 4 git commands to generate.