Summary
Some test cases in aws-cpp-sdk-core-tests fail with assertion errors related to Aws::Utils::TempFile when building aws-sdk-cpp using MinGW (gcc 11.4.0) on Windows 11. The failures output errors such as assertion failures and file errors.
Environment
- OS: Windows 11
- Compiler: MinGW (gcc 11.4.0)
- AWS CPP SDK version: 1.11.643
Steps to Reproduce
- Build the project with:
cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DAWS_SDK_WARNINGS_ARE_ERRORS=off
ninja
- Run the test suite.
Expected Behavior
All test cases should pass and the compilation procedure should complete successfully.
Actual Behavior
Test cases related to Aws::Utils::TempFile fail with assertion errors (see previous logs for details):
AWSConfigFileProfileConfigLoaderTest.TestCredentialsFileCorrupted
AWSConfigFileProfileConfigLoaderTest.TestConfigFileLoad
AWSConfigFileProfileConfigLoaderTest.TestCredentialsBlankSpace
Additional Context
- The issue has been resolved by the user and a pull request can be made with the fix.
- Failed test cases are all related to
Aws::Utils::TempFile.