Bug #40782 mtr doesn't fix paths on cygwin
Submitted: 17 Nov 2008 13:03 Modified: 2 Apr 2009 5:16
Reporter: jack andrews Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S3 (Non-critical)
Version:5.0+ OS:Windows
Assigned to: CPU Architecture:Any
Tags: Contribution

[17 Nov 2008 13:03] jack andrews
Description:
run mtr on a recent tree on cygwin.  get warnings about not able to create *lower-test* in \tmp\SD34h9 or similar

How to repeat:
run mtr on a recent tree on cygwin.

Suggested fix:
this isn't a pretty patch -- need a function cygpath_chomp() but i don't know perl well enough to make best fix.

Index: winplay/mysql-test/mysql-test-run.pl
===================================================================
--- winplay.orig/mysql-test/mysql-test-run.pl
+++ winplay/mysql-test/mysql-test-run.pl
@@ -1465,6 +1465,13 @@ sub collect_mysqld_features () {
   else {
     $tmpdir= tempdir(CLEANUP => 0); # Directory removed by this function
   }
+  if ( $glob_cygwin_perl )
+  {
+    $tmpdir= `cygpath -m "$tmpdir"`;
+    chomp($tmpdir);
+    $path_language= `cygpath -m "$path_language"`;
+    chomp($path_language);
+  }
   #
   # Execute "mysqld --help --verbose" to get a list
   # list of all features and settings
[11 Dec 2008 21:28] Sveta Smirnova
Thank you for the report.

Verified as described.
[6 Feb 2009 7:30] Magnus BlÄudd
Should be tested again with mtr.pl v2
[2 Apr 2009 5:16] jack andrews
mtr 2  fixes this bug.