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 205128 - New test breaks Build Project action
Summary: New test breaks Build Project action
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: nnnnnk
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-11-15 08:54 UTC by soldatov
Modified: 2011-11-16 15:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2011-11-15 08:54:56 UTC
Scenario:
- Create C++ Application project (with main.cpp)
- Call context menu on "Test Files" logical folder and call New Test Folder... menu item
- Press OK button
- Select "New Test 1" folder and press "New File..." button on toolbar
- Select C++ category and "C++ Simple Test" file type. Press Next button.
- Press Finish button
- Clean and Build project
===>

mkdir -p build/Debug/GNU-Solaris-x86/tests
rm -f build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o.d
g++    -c -g -MMD -MP -MF build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o.d -o build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o newcppsimpletest.cpp
mkdir -p build/Debug/GNU-Solaris-x86
rm -f build/Debug/GNU-Solaris-x86/main.o.d
g++    -c -g -MMD -MP -MF build/Debug/GNU-Solaris-x86/main.o.d -o build/Debug/GNU-Solaris-x86/main.o main.cpp
mkdir -p build/Debug/GNU-Solaris-x86
[13]	|         0|        35|FUNC |GLOB |0    |1      |main
mkdir -p dist/Debug/GNU-Solaris-x86
g++       -o dist/Debug/GNU-Solaris-x86/cppapplication_1 build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o build/Debug/GNU-Solaris-x86/main_nomain.o build/Debug/GNU-Solaris-x86/main.o  
ld: fatal: symbol 'main' is multiply-defined:
	(file build/Debug/GNU-Solaris-x86/tests/newcppsimpletest.o type=FUNC; file build/Debug/GNU-Solaris-x86/main.o type=FUNC);
ld: fatal: file processing errors. No output written to dist/Debug/GNU-Solaris-x86/cppapplication_1
collect2: ld returned 1 exit status
gmake[2]: *** [dist/Debug/GNU-Solaris-x86/cppapplication_1] Ошибка 1
gmake[2]: Leaving directory `/export/files/NB/CppApplication_1'
gmake[1]: *** [.build-conf] Ошибка 2
gmake[1]: Leaving directory `/export/files/NB/CppApplication_1'
gmake: *** [.build-impl] Ошибка 2


BUILD FAILED (exit value 2, total time: 452ms)
Comment 1 Alexander Pepin 2011-11-16 11:56:44 UTC
please evaluate
Comment 2 nnnnnk 2011-11-16 15:54:02 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/602257200b1d