<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -720,6 +720,11 @@ and `test-case-mode-line-info-position'.&quot;
           (test-case-echo-state
            (test-case-calculate-global-state test-case-current-run)))))))
 
+(defun test-case-localname (path)
+  (if (tramp-tramp-file-p path)
+      (with-parsed-tramp-file-name path remote remote-localname)
+      path))
+
 (defun test-case-run-internal (test-buffer result-buffer &amp;optional out-buffer)
   (let ((inhibit-read-only t)
         (default-directory (file-name-directory (buffer-file-name test-buffer)))
@@ -738,7 +743,7 @@ and `test-case-mode-line-info-position'.&quot;
       (error (insert (error-message-string err) &quot;\n&quot;)
              (setq command &quot;false&quot;))))
 
-    (setq process (start-process &quot;test-case-process&quot; out-buffer
+    (setq process (start-file-process &quot;test-case-process&quot; out-buffer
                                  shell-file-name shell-command-switch command))
     (set-process-query-on-exit-flag process nil)
     (process-put process 'test-case-tick (buffer-modified-tick test-buffer))
@@ -1245,7 +1250,8 @@ configured correctly.  The classpath is determined by
     ('supported (and (derived-mode-p 'ruby-mode)
                      (test-case-grep &quot;require\s+['\&quot;]test/unit['\&quot;]&quot;)))
     ('command (concat test-case-ruby-executable &quot; &quot;
-                      test-case-ruby-arguments &quot; &quot; buffer-file-name))
+                      test-case-ruby-arguments &quot; &quot; 
+                      (test-case-localname buffer-file-name)))
     ('save t)
     ('failure-pattern test-case-ruby-failure-pattern)
     ('font-lock-keywords test-case-ruby-font-lock-keywords)))
@@ -1287,7 +1293,8 @@ configured correctly.  The classpath is determined by
     ('name &quot;PyUnit&quot;)
     ('supported (and (derived-mode-p 'python-mode)
                      (test-case-grep &quot;\\_&lt;import\s+unittest\\_&gt;&quot;)))
-    ('command (concat test-case-python-executable &quot; &quot; buffer-file-name))
+    ('command (concat test-case-python-executable &quot; &quot; 
+                      (test-case-localname buffer-file-name)))
     ('save t)
     ('failure-pattern (test-case-python-failure-pattern))
     ('font-lock-keywords test-case-python-font-lock-keywords)))
@@ -1313,7 +1320,7 @@ configured correctly.  The classpath is determined by
 
 (defun test-case-cxxtest-command ()
   (let ((executable (funcall test-case-cxxtest-executable-name-func
-                             buffer-file-name)))
+                             (test-case-localname buffer-file-name))))
     (unless (file-exists-p executable)
       (error &quot;Executable %s not found&quot; executable))
     (when (file-newer-than-file-p buffer-file-name executable)
@@ -1371,7 +1378,7 @@ customize `test-case-cxxtest-executable-name-func'&quot;
 
 (defun test-case-cppunit-command ()
   (let ((executable (funcall test-case-cppunit-executable-name-func
-                             buffer-file-name)))
+                             (test-case-localname buffer-file-name))))
     (unless (file-exists-p executable)
       (error &quot;Executable %s not found&quot; executable))
     (when (file-newer-than-file-p buffer-file-name executable)</diff>
      <filename>test-case-mode.el</filename>
    </modified>
    <modified>
      <diff>@@ -77,7 +77,7 @@
     ('command (format &quot;%s %s %s %s&quot; test-case-phpunit-executable
                       test-case-phpunit-arguments
                       (test-case-phpunit-find-test-class)
-                      buffer-file-name))
+                      (test-case-localname buffer-file-name)))
     ('save t)
     ('failure-pattern test-case-phpunit-failure-pattern)
     ('font-lock-keywords test-case-phpunit-font-lock-keywords)))</diff>
      <filename>test-case-phpunit.el</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cacba6a3d524c75baa6315fce5df87a8496d12dd</id>
    </parent>
  </parents>
  <author>
    <name>Ian Eure</name>
    <email>ian.eure@gmail.com</email>
  </author>
  <url>http://github.com/ieure/test-case-mode/commit/5b7bb3ed506b74e617dfd4a1d65a68f2d153ca7b</url>
  <id>5b7bb3ed506b74e617dfd4a1d65a68f2d153ca7b</id>
  <committed-date>2009-07-24T12:09:05-07:00</committed-date>
  <authored-date>2009-07-24T12:09:05-07:00</authored-date>
  <message>Make test-case-mode work over Tramp.</message>
  <tree>104364d6992c26cdd962722305c195d2b34c8e31</tree>
  <committer>
    <name>Ian Eure</name>
    <email>ian.eure@gmail.com</email>
  </committer>
</commit>
