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 - Test runner mixes forward and back slashes in path
Summary: Test runner mixes forward and back slashes in path
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Testing (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-16 15:55 UTC by virtualpt
Modified: 2010-06-01 13:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Small dummy project to show the issue (3.93 KB, application/x-compressed)
2008-07-16 15:56 UTC, virtualpt
Details

Note You need to log in before you can comment on or make changes to this bug.
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.