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 199267 - Windows: IDE generates invalid test file
Summary: Windows: IDE generates invalid test file
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-06-08 13:31 UTC by soldatov
Modified: 2011-06-19 06:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (514.69 KB, image/png)
2011-06-08 13:32 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2011-06-08 13:31:58 UTC
Windows only

Scenario:
- Create Quote
- Select cpu.cc file
- Create C++ Simple Test (select all nodes in wizard)
==> test can't be built
Comment 1 soldatov 2011-06-08 13:32:37 UTC
Created attachment 108801 [details]
screenshot
Comment 2 nnnnnk 2011-06-14 09:43:30 UTC
The reason is that file.getAbsolutePath() returns path with back slashes ("\") on Windows.
In previous releases we have assumption that all pathes do not contain back slashes.
Comment 3 Vladimir Voskresensky 2011-06-16 15:19:08 UTC
tests are not ready for file objects. will change
Comment 4 Vladimir Voskresensky 2011-06-16 16:00:16 UTC
fixed
http://hg.netbeans.org/cnd-main?cmd=changeset;node=2d93cb571908
use FSPath instead of String
Comment 5 Vladimir Kvashin 2011-06-17 11:33:03 UTC
I reviewed the fix. It is correct and safe.
Comment 6 Alexander Pepin 2011-06-17 12:07:01 UTC
verified in trunk build 201106170600
Comment 7 Vladimir Voskresensky 2011-06-17 13:08:08 UTC
http://hg.netbeans.org/releases?cmd=changeset;node=52ed11d1ac60
Comment 8 Quality Engineering 2011-06-17 14:38:50 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/2d93cb571908
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #199267 -  Windows: IDE generates invalid test file
Comment 9 Quality Engineering 2011-06-19 06:41:41 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/52ed11d1ac60
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #199267 -  Windows: IDE generates invalid test file
(transplanted from 2d93cb5719087e8263acfb73842c3f560360afd3)