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.
Scenario: Select CPP class to generate test, right click on node, Create Test -> New CppUnit Test ... Fill out wizard with Test Name, Test Class Name, Test Runner Name, click Finish. Right-click -> Test to run test. Following error observed: "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf "/usr/bin/make" -f nbproject/Makefile-Debug.mk build/Debug/GNU-MacOSX/tests/TestFiles/testDCI make[2]: `build/Debug/GNU-MacOSX/tests/TestFiles/testDCI' is up to date. "/usr/bin/make" -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-tests-conf "/usr/bin/make" -f nbproject/Makefile-Debug.mk build/Debug/GNU-MacOSX/tests/TestFiles/testDCI make[1]: *** No rule to make target `build/Debug/GNU-MacOSX/tests//Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.o', needed by `build/Debug/GNU-MacOSX/tests/TestFiles/f1'. Stop. make: *** [.build-tests-impl] Error 2 make[2]: `build/Debug/GNU-MacOSX/tests/TestFiles/testDCI' is up to date. BUILD TESTS FAILED (exit value 2, total time: 864ms) These are the lines that are generated int the Makefile-Debug: # Build Test Targets .build-tests-conf: .build-conf ${TESTFILES} ${TESTDIR}/TestFiles/f1: ${TESTDIR}//Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.o ${TESTDIR}//Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryTesteRunner.o ${OBJECTFILES:%.o=%_nomain.o} ${MKDIR} -p ${TESTDIR}/TestFiles ${LINK.cc} -o ${TESTDIR}/TestFiles/f1 $^ ${LDLIBSOPTIONS} -lcppunit -L/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include /opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/lib/libcppunit.a ${TESTDIR}/_ext/1897666319/dbHistoryRecordTestClass.o: /Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.cpp ${MKDIR} -p ${TESTDIR}/_ext/1897666319 ${RM} $@.d $(COMPILE.cc) -g -I. -I/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Database/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Msgs/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Queues/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/DD/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Drivers/serialComm/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Enet/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/GPS/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/History/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Profile/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Radio/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Startup/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/System/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Utilities/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Web\ page/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Wifi/inc -I/opt/local/var/macports/software/boost/1.42.0_0/opt/local/include -I/opt/local/var/macports/software/gpsd/2.92_0/opt/local/include -I/opt/local/var/macports/software/sqlite3/3.6.23.1_0/opt/local/include -I. -I. -I. -I/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include -MMD -MP -MF $@.d -o ${TESTDIR}/_ext/1897666319/dbHistoryRecordTestClass.o /Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.cpp ${TESTDIR}/_ext/1897666319/dbHistoryTesteRunner.o: /Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryTesteRunner.cpp ${MKDIR} -p ${TESTDIR}/_ext/1897666319 ${RM} $@.d $(COMPILE.cc) -g -I. -I/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Database/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Msgs/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Queues/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/DD/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Drivers/serialComm/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Enet/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/GPS/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/History/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Profile/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Radio/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Startup/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/System/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Utilities/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Web\ page/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Wifi/inc -I/opt/local/var/macports/software/boost/1.42.0_0/opt/local/include -I/opt/local/var/macports/software/gpsd/2.92_0/opt/local/include -I/opt/local/var/macports/software/sqlite3/3.6.23.1_0/opt/local/include -I. -I. -I. -I/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include -MMD -MP -MF $@.d -o ${TESTDIR}/_ext/1897666319/dbHistoryTesteRunner.o /Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryTesteRunner.cpp Note that the file targets for the individual generated test files (e.g., ${TESTDIR}/_ext/1897666319/dbHistoryTesteRunner.o) are not correctly reflected in the overall test target (e.g., ${TESTDIR}//Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.o ) Expected Behavior: ${TESTDIR}/_ext/1897666319/dbHistoryTesteRunner.o and ${TESTDIR}/_ext/1897666319/dbHistoryRecordTestClass.o in the ${TESTDIR}/TestFiles/f1: make line.
Created attachment 100277 [details] Full Makefile-Debug.mk
Created attachment 100278 [details] project.xml
Created attachment 100279 [details] configurations.xml
Thanks, ranch_hand6@netbeans.org I understood your problem before your latest messages. But now it is clear
Created attachment 100280 [details] simple sample
Yes, looks like you've got it.
Problem occurs with Linux as well -- running on CENTOS 5.4 with NetBeans 6.9.
I have this same problem, when I use "Add Sources From Folder" option. I am running Linux Debian Squeeze and Netbeans 6.9.1
http://hg.netbeans.org/cnd-main?cmd=changeset;node=1952505eb469