isapego commented on code in PR #7875:
URL: https://github.com/apache/ignite-3/pull/7875#discussion_r2991355395


##########
.teamcity/test/platform_tests/PlatformCppTestsWindows.kt:
##########
@@ -83,26 +82,66 @@ object PlatformCppTestsWindows : BuildType({
             formatStderrAsError = true
         }
         customGradle {
-            name = "Verify runner is builded"
+            name = "Verify runner is built"
             tasks = ":ignite-runner:integrationTestClasses"
         }
         script {
             name = "C++ Client integration tests"
             workingDir = "%PATH__CMAKE_BUILD_DIRECTORY%"
-            scriptContent = """Debug\bin\ignite-client-test 
--gtest_output=xml:%PATH__CLIENT_TEST_RESULTS%"""
+            scriptContent = """
+                mkdir %PATH__CRASH_DUMPS% 2>nul
+                procdump -accepteula -ma -e -n 1 -x %PATH__CRASH_DUMPS% 
Debug\bin\ignite-client-test --gtest_output=xml:%PATH__CLIENT_TEST_RESULTS%
+                if %%ERRORLEVEL%% NEQ 0 if %%ERRORLEVEL%% NEQ -2 (
+                    echo procdump failed unexpectedly with code %%ERRORLEVEL%%
+                    exit /b 1
+                )

Review Comment:
   It works in practice.



##########
.teamcity/test/platform_tests/PlatformCppTestsWindows.kt:
##########
@@ -83,26 +82,66 @@ object PlatformCppTestsWindows : BuildType({
             formatStderrAsError = true
         }
         customGradle {
-            name = "Verify runner is builded"
+            name = "Verify runner is built"
             tasks = ":ignite-runner:integrationTestClasses"
         }
         script {
             name = "C++ Client integration tests"
             workingDir = "%PATH__CMAKE_BUILD_DIRECTORY%"
-            scriptContent = """Debug\bin\ignite-client-test 
--gtest_output=xml:%PATH__CLIENT_TEST_RESULTS%"""
+            scriptContent = """
+                mkdir %PATH__CRASH_DUMPS% 2>nul
+                procdump -accepteula -ma -e -n 1 -x %PATH__CRASH_DUMPS% 
Debug\bin\ignite-client-test --gtest_output=xml:%PATH__CLIENT_TEST_RESULTS%
+                if %%ERRORLEVEL%% NEQ 0 if %%ERRORLEVEL%% NEQ -2 (
+                    echo procdump failed unexpectedly with code %%ERRORLEVEL%%
+                    exit /b 1
+                )

Review Comment:
   It works in practice. Tested.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to