Skip to content

Fix utDefaultIOStream test under MinGW - #5525

Merged
kimkulling merged 1 commit into
assimp:masterfrom
thenanisore:thenanisore/fix-utdefaultiostream-test
Apr 6, 2024
Merged

kimkulling merged 1 commit into
assimp:masterfrom
thenanisore:thenanisore/fix-utdefaultiostream-test

Conversation

@thenanisore

@thenanisore thenanisore commented Apr 2, 2024 •

Copy link
Copy Markdown
Contributor

utDefaultIOStream.FileSizeTest fails on MinGW's GCC, since it assumes a *nix OS and tries to create a temporary file at /tmp/rndfp.XXXXXX. There're many other places which checks for MINGW macros, so I guess it wasn't intentional.

[==========] 574 tests from 115 test suites ran. (16450 ms total)
[  PASSED  ] 573 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] utDefaultIOStream.FileSizeTest

 1 FAILED TEST

Similar logic is used in utIOStreamBuffer.cpp, although there it just creates the files in the cwd without any TMP_PATH.

@thenanisore
thenanisore force-pushed the thenanisore/fix-utdefaultiostream-test branch from 2447392 to d86fc7d Compare April 2, 2024 16:43

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lokks fine.

@kimkulling kimkulling added Testing Global flag to mark testing topics Bug Global flag to mark a deviation from expected behaviour labels Apr 3, 2024
@kimkulling
kimkulling merged commit 9d11b22 into assimp:master Apr 6, 2024
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Global flag to mark a deviation from expected behaviour Testing Global flag to mark testing topics

Projects

Development

Successfully merging this pull request may close these issues.

2 participants