This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 140339

Summary: Test runner mixes forward and back slashes in path
Product: ruby Reporter: virtualpt <virtualpt>
Component: TestingAssignee: Erno Mononen <emononen>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Small dummy project to show the issue

Description virtualpt 2008-07-16 15:55:16 UTC
When running tests in the test runner, if an included file uses Dir.glob(File.join(File.dirname(__FILE__),"*.rb")) { |f|
require File.basename(f)} to automatically require all files ina sub directory it fails as the path generated by
File.dirname(__FILE__) contains forward & back slahes.

This behaviour does not happen in Netbeans 6.1. I have attached a zip file containing a realy dummy project which will
help replicate this.

Right click on subber.rb & Test. You will see the dirname printed out with a mixture of forward & back slashes. If you
only select to run the file rather than test it, which doesn't use the test runner, or run in Netbeans 6.1 you will see
the dirname printed out with all forward slashes.
Comment 1 virtualpt 2008-07-16 15:56:24 UTC
Created attachment 64714 [details]
Small dummy project to show the issue
Comment 2 Erno Mononen 2008-07-28 11:53:30 UTC
Thanks for the project, I reproduced this on WinXP.
Comment 3 Erno Mononen 2010-03-26 13:47:16 UTC
I think this should be fixed now as the problem was likely caused by #181128. I need to test on Win first though.
Comment 4 Erno Mononen 2010-06-01 13:06:21 UTC
I confirmed that this is fixed in 6.9.