Skip to content

Conversation

gxuu
Copy link
Contributor

@gxuu gxuu commented Oct 17, 2025

READY FOR REVIEW

See commits title.

closes #376

@finos finos deleted a comment from linux-foundation-easycla bot Oct 17, 2025
@gxuu gxuu requested a review from sharpener6 October 17, 2025 20:00
@gxuu gxuu force-pushed the oct-win-warn branch 2 times, most recently from 54d41b3 to 2a5dad6 Compare October 17, 2025 21:42
@@ -1 +1,10 @@
add_test_executable(test_ymq test_ymq.cpp)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think for all platforms, ymq tests should passed.

When add support for windows, it should make changes that will enable windows, then add matrix

So, please revert this

Copy link
Contributor Author

@gxuu gxuu Oct 18, 2025

Choose a reason for hiding this comment

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

The thing is when developing locally this creates error because this is Linux specific code (as of now).

We still want the tests that can be build (for example this test_ymq_logging)to build so that we can test along developing.

Windows build for YMQ has always been enabled and it didn't report problem only because it's not part of the CI.

So I think it's more reasonable to turn it on after test_ymq is cross platformed as well, preferably at the same time as CI for Windows is on. The name test_ymq may be confusing in cross platformed context, because now it really is just test_ymq_linux.

Please read above, if you still insist, then I will revert.

AllowShortFunctionsOnASingleLine: InlineOnly
AllowAllParametersOfDeclarationOnNextLine: true
BinPackParameters: OnePerLine
# BinPackParameters: OnePerLine
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is creating problem on Visual Studio - it doesn't know about this option. Perhaps the bundled clang format version is not new enough. If this needs to be reverted, I will revert it.

@gxuu gxuu changed the title Fix warnings on Windows introduced by #358 Fix Errors on Windows introduced by #358 Oct 18, 2025

# Post build: We need to copy if dll is not present, otherwise the test program won't find gtest.dll
# See https://stackoverflow.com/questions/69978314/cmake-with-gtest-on-windows-build-starts-test-but-shared-libs-cannot-be-found
if (WIN32)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Be noted that gtest has been set to always be linked dynamically. Also I think it's unwise to link statically when it comes to test cases. Not sure whether we still want to link everything statically. But this is an easier change to first make sure the test is runnable. Perhaps we revisit it later.

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.

ymq's test should be in the same directory

2 participants