Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add windows clang to CI #5537

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

kimkulling
Copy link
Member

@kimkulling kimkulling changed the title Update ccpp.yml Add windows clang to CI Apr 18, 2024
@@ -86,7 +84,7 @@ TEST_F( IOStreamBufferTest, open_close_Test ) {
const auto dataCount = dataSize / sizeof(*data);

char fname[]={ "octest.XXXXXX" };
auto* fs = MakeTmpFile(fname);
FILE *fsm = fopen(fname, "w+");
Copy link
Member

Choose a reason for hiding this comment

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

This is not even remotely correct. MakeTmpFile securely creates a file which did not exist previously.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right!It was a test to see if this will influence the failing unittest somehow. Any ideas what is going wrong there?

Copy link
Member

Choose a reason for hiding this comment

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

The fopen thing? That's MS braindeadedness, just add _CRT_SECURE_NO_WARNINGS preprocessor macro somewhere in CMakelists.txt

Copy link
Member Author

Choose a reason for hiding this comment

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

No, the failed unittest with the error code 127 when opening the tempfile.

Copy link
Member

Choose a reason for hiding this comment

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

Looks like it assumes that MSVC is the same as win32 and GCC/clang isn't.

#if defined(_MSC_VER)

Copy link

sonarcloud bot commented Sep 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants