-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various fixes to make more Windows CI tests pass
* Try to address the OpenEXR thread pool hanging when we call exit(). * Strive to remove all exit() calls after any file reads happen, in oiiotool, iconvert, and idiff. * This does not stop all hanging. * Temp workaround: for the Windows CI tests, use ctest commands to allow each test to timeout 3 times before giving up. To be clear, this does not solve the problem, it only masks it. But it helps us "pass" those tests, exposing any other problems occurring with them, and we will return later to find the source of any residual timeouts. * Update ref output for several tests where the differ slightly under Windows. * Make runtest.py convert text output line endings cr-lf -> lf before comparing to reference output. (This eliminates unnecessary diffs.) * Update many tests' run.py file to use double quotes instead of single quotes for arguments containing some characters -- looks like the Windows shell invoked by Python system() does not handle the single quotes quite the same way as Unix shells. * Helper: ArgParse: add abort() method, lets you stop command line parsing. * Helper: Filesystem::generic_filepath. Similar to C++17 std::filesystem::path::generic_string(), but for a filepath sent as string_view. While I was there, I noticed that a few Filesystem functions that I declared as `noexcept` actually call things that can throw, so I put a few try/catch in stratgic spots. Nobody had reported a problem with this, and maybe it would be fine, but it's the right thing to do. * oiiotool: when printing the command line after errors, genericize identifiable filenames so they render the same on Windows and POSIX, and strip directory name from the oiiotool filepath. This makes error output comparison more equal between Windows and POSIX, making several more tests pass. In total, this seems to get us down to failing only 7 tests (not counting spurious timeouts that cause failures).
- Loading branch information
Showing
20 changed files
with
231 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.