CMake: Don't parallel-test on Windows, protect FFmpeg version checks #684
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Somehow the old UnitTest++ version of tests/KeyFrame_Tests.cpp
got resurrected back into the repo. Shotgun blast to the head.
(@jonoomph : I THINK this is the cause of the Win32 builder issues, oddly enough. We'll find out as soon as I blow it away.)Update: I was wrong. It appears that on Windows the tests just experience occasional hangs. I'm hoping it's just because the tests are being run in parallel. I've added logic to turn off the parallel testing on Windows platforms, we'll see if that clears it up. It "felt" to me like the hangs were the result of multiple test runs trampling all over each other. (Possibly some race condition as they contend over the same ZeroMQ port bindings, or the like.)
Also, it seems I missed something pretty important, when I recently added new version logic to CMake: The version variables for the FFmpeg components are only set if FFmpeg is detected using PkgConfig. If it's not (i.e., on Windows) those variables will exist but contain the empty string, something I hadn't properly protected against. This should fix it.