Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] unit test fail on windows 10 with mingw


Given my experiences of previous deliveries I tried to run the unit test suite AutomatedIntegrationSuite on the master branch of CDT. I don't know if this is the correct suite but I really would like to be able to run the "test suit used by the build" to run without problems on my system.

7 out of 214 test fail.
I'm running on a windows 10 64 bit OS and Did the eclipse install with oomph.

I added mingw 5.3.0 to the path before starting D:\eclipse\cdt-master\eclipse

I also had to set D:\eclipse\cdt-master\ to have write rights before the test would succeed (strangely enough windows forced me to do this on all children as well)

I added echo.cmd echo.bat and echo.exe (rename from size.exe) to my path.

What I found out about the problems.

The 1th problem is test30MultiResConfig failing because it can't find junit.framework.AssertionFailedError: File D:/eclipse/cdt-master/junit-workspace/multiResConfig/MBS30ConfigName.Dbg/main.d could not be read: D:\eclipse\cdt-master\junit-workspace\multiResConfig\MBS30ConfigName.Dbg\main.d (Het systeem kan het opgegeven bestand niet vinden)
The file is on my system as


Yes with single quotes

The 2th problem test30CopyandDeploy

Fails in console with

'cp' is not recognized as an internal or external command,

Seems logical as it is windows.

The 3th problem test1DepCalc2
contains a wrong include path statement
Sources/sub\ sources
instead of
Sources/sub sources
After fixing this the linker starts making the same mistake
gcc  -o "test1DepCalc2"  ./Sources/sub\ sources/func\ 3.o
Using \space instead of quoting the string

The 4th problem is more puzzling test1DepCalc3
It starts with the same \ problem in /Sources/sub\ source but after fixing this the build still fails with
'Invoking: GCC C Compiler'
gcc -DFUN3 -I../Headers -I"../Sources/sub sources" -O0 -g3 -Wall -c -fmessage-length=0 -o "Sources/sub sources/func 3.o" "../Sources/sub sources/func 3.c" && \ echo -n 'Sources/sub sources/func 3.d' Sources/ sources/ ./ > 'Sources/sub sources/func 3.d' && \ gcc -MM -MG -P -w -DFUN3 -I../Headers -I"../Sources/sub sources" -O0 -g3 -Wall -c -fmessage-length=0 "../Sources/sub sources/func 3.c" >> 'Sources/sub sources/func 3.d'
Het systeem kan het opgegeven pad niet vinden.
Sources/sub sources/ recipe for target 'Sources/sub sources/func 3.o' failed
make: *** [Sources/sub sources/func 3.o] Error 1

It looks like make is trying to execute the 3 commands in one go which may be related to the &&\ at the end of the lines.

The 5th problem test1DepCalcPreBuild
exactly the same as test1DepCalc2

The last problem testDesRebuildState
I have no clue what this is about. So I simply copy the error trace
    at junit.framework.Assert.assertTrue(
    at junit.framework.Assert.assertFalse(
    at junit.framework.Assert.assertFalse(
    at junit.framework.TestCase.assertFalse(
at org.eclipse.cdt.managedbuilder.core.tests.BuildDescriptionModelTests.testDesRebuildState(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(
    at junit.framework.TestCase.runBare(
    at junit.framework.TestResult$1.protect(
    at junit.framework.TestResult.runProtected(
    at junit.framework.TestSuite.runTest(
    at junit.framework.TestSuite.runTest(
at at at at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( at at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main( at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness.lambda$0(
    at Source)

I would be more confident pushing changes if these test would succeed :-) Or some could tell me this is not a problem.

Best regards

Back to the top