Skip to content

Test failures in aws-cpp-sdk-core-tests with MinGW/gcc 11.4.0 on Windows 11 (Aws::Utils::TempFile) #3549

@timothy-he

Description

@timothy-he

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

  1. 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
    
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions