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 185710 - Unit tests don't work on remote hosts
Summary: Unit tests don't work on remote hosts
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-07 15:37 UTC by nnnnnk
Modified: 2010-05-19 06:07 UTC (History)
0 users

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 nnnnnk 2010-05-07 15:37:07 UTC
Unit tests don't work on remote hosts with "Smart Secure Copy" option.

Scenario:
Create C/C++ application, add simple C++ test with help of wizard.
Run "Test" action on folder.

Output:
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
gmake[1]: Entering directory `/export/home/tester/.netbeans/remote/nnnnnk-SunOS-x86_64/home/nk220367/NetBeansProjects/CppApplication_116'
"/usr/bin/gmake"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cppapplication_116
gmake[2]: Entering directory `/export/home/tester/.netbeans/remote/nnnnnk-SunOS-x86_64/home/nk220367/NetBeansProjects/CppApplication_116'
gmake[2]: `dist/Debug/GNU-Linux-x86/cppapplication_116' is up to date.
gmake[2]: Leaving directory `/export/home/tester/.netbeans/remote/nnnnnk-SunOS-x86_64/home/nk220367/NetBeansProjects/CppApplication_116'
gmake[1]: Leaving directory `/export/home/tester/.netbeans/remote/nnnnnk-SunOS-x86_64/home/nk220367/NetBeansProjects/CppApplication_116'
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-tests-conf
gmake[1]: Entering directory `/export/home/tester/.netbeans/remote/nnnnnk-SunOS-x86_64/home/nk220367/NetBeansProjects/CppApplication_116'
"/usr/bin/gmake"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cppapplication_116
gmake[2]: Entering directory `/export/home/tester/.netbeans/remote/nnnnnk-SunOS-x86_64/home/nk220367/NetBeansProjects/CppApplication_116'
gmake[1]: Warning: File `tests/newsimpletest.cpp' has modification time 7.6e+03 s in the future
gmake[2]: `dist/Debug/GNU-Linux-x86/cppapplication_116' is up to date.
gmake[2]: Leaving directory `/export/home/tester/.netbeans/remote/nnnnnk-SunOS-x86_64/home/nk220367/NetBeansProjects/CppApplication_116'
tests/newsimpletest.cpp:1:1: warning: null character(s) ignored
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/crt1.o: In function `_start':
init.c:(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
gmake[1]: *** [build/Debug/GNU-Linux-x86/tests/TestFiles/f1] Error 1
mkdir -p build/Debug/GNU-Linux-x86/tests/tests
rm -f build/Debug/GNU-Linux-x86/tests/tests/newsimpletest.o.d
g++    -c -g -I. -MMD -MP -MF build/Debug/GNU-Linux-x86/tests/tests/newsimpletest.o.d -o build/Debug/GNU-Linux-x86/tests/tests/newsimpletest.o tests/newsimpletest.cpp
mkdir -p build/Debug/GNU-Linux-x86/tests/TestFiles
g++     -o build/Debug/GNU-Linux-x86/tests/TestFiles/f1 build/Debug/GNU-Linux-x86/tests/tests/newsimpletest.o build/Debug/GNU-Linux-x86/main_nomain.o  
gmake[1]: Leaving directory `/export/home/tester/.netbeans/remote/nnnnnk-SunOS-x86_64/home/nk220367/NetBeansProjects/CppApplication_116'
gmake: *** [.build-tests-impl] Error 2

I guess that "tests/newsimpletest.cpp:1:1: warning: null character(s) ignored" means that newsimpletest.cpp is empty for some reasons.

With "File System Sharing" everything is ok.
Comment 1 Vladimir Kvashin 2010-05-11 17:27:05 UTC
Fixed in cnd-main
http://hg.netbeans.org/cnd-main/rev/e212312ce2de
Comment 2 Quality Engineering 2010-05-17 15:27:58 UTC
Integrated into 'main-golden', will be available in build *201005170932* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 3 Quality Engineering 2010-05-19 06:07:02 UTC
Integrated into 'main-golden', will be available in build *201005182201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: