Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataFramePython Unittests fails when building static libs. #877

Open
r-englund opened this issue Feb 27, 2020 · 2 comments
Open

DataFramePython Unittests fails when building static libs. #877

r-englund opened this issue Feb 27, 2020 · 2 comments
Labels
P: Build System P: Testing Testing-related, unit testing, regression testing, etc. S: Windows T: Bug

Comments

@r-englund
Copy link
Member

1>[==========] Running 9 tests from 2 test suites.
1>unknown file : error : C++ exception with description "RuntimeError: InviwoApplication Singleton not initialized. Ensure that init() is called in a thread-safe environment.
1>
1>At:
1>  <string>(7): <module>
1>" thrown in the test body.
1>unknown file : error : C++ exception with description "RuntimeError: InviwoApplication Singleton not initialized. Ensure that init() is called in a thread-safe environment.
1>
1>At:
1>  <string>(9): <module>
1>" thrown in the test body.
1>unknown file : error : C++ exception with description "RuntimeError: InviwoApplication Singleton not initialized. Ensure that init() is called in a thread-safe environment.
1>
1>At:
1>  <string>(9): <module>
1>" thrown in the test body.
1>unknown file : error : C++ exception with description "RuntimeError: InviwoApplication Singleton not initialized. Ensure that init() is called in a thread-safe environment.
1>
1>At:
1>  <string>(6): <module>
1>" thrown in the test body.
1>unknown file : error : C++ exception with description "RuntimeError: InviwoApplication Singleton not initialized. Ensure that init() is called in a thread-safe environment.
1>
1>At:
1>  <string>(6): <module>
1>" thrown in the test body.
1>unknown file : error : C++ exception with description "RuntimeError: InviwoApplication Singleton not initialized. Ensure that init() is called in a thread-safe environment.
1>
1>At:
1>  <string>(6): <module>
1>" thrown in the test body.
1>unknown file : error : C++ exception with description "RuntimeError: InviwoApplication Singleton not initialized. Ensure that init() is called in a thread-safe environment.
1>
1>At:
1>  <string>(7): <module>
1>" thrown in the test body.
1>unknown file : error : C++ exception with description "RuntimeError: InviwoApplication Singleton not initialized. Ensure that init() is called in a thread-safe environment.
1>
1>At:
1>  <string>(7): <module>
1>" thrown in the test body.
1>[==========] 9 tests from 2 test suites ran. (13 ms total)
1>[  PASSED  ] 1 test.
1>[  FAILED  ] 8 tests, listed below:
1>[  FAILED  ] ColumnTests.CategoricalColumn
1>[  FAILED  ] ColumnTests.FloatColumn
1>[  FAILED  ] ColumnTests.DataAccess
1>[  FAILED  ] DataFrameTests.Create
1>[  FAILED  ] DataFrameTests.AddColumn
1>[  FAILED  ] DataFrameTests.AddCategoricalColumn
1>[  FAILED  ] DataFrameTests.AddColumnFromBuffer
1>[  FAILED  ] DataFrameTests.RowAccess
1>
1> 8 FAILED TESTS
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: The command "setlocal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: ..\..\bin\Debug\inviwo-unittests-dataframepython.exe
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :VCEnd" exited with code 1.
1>Done building project "inviwo-unittests-dataframepython.vcxproj" -- FAILED.
@r-englund r-englund added T: Bug S: Windows P: Build System P: Testing Testing-related, unit testing, regression testing, etc. labels Feb 27, 2020
@r-englund r-englund changed the title DataFramePython Unittests fails when building shared libs. DataFramePython Unittests fails when building static libs. Feb 27, 2020
@tzcskys
Copy link

tzcskys commented Mar 10, 2020

Hi, I have the same problem, have you solved it yet? thanks.

@petersteneteg
Copy link
Member

I don't think this has been fixed yet, you can always just disable building/running the unit tests in cmake IVW_UNITTESTS, IVW_UNITTESTS_RUN_ON_BUILD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Build System P: Testing Testing-related, unit testing, regression testing, etc. S: Windows T: Bug
Projects
None yet
Development

No branches or pull requests

3 participants