We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 232a735 commit bfb5710Copy full SHA for bfb5710
.github/workflows/ci.yml
@@ -512,11 +512,13 @@ jobs:
512
run: |
513
set +e
514
cd build
515
- ./tst/producer_test --gtest_filter="ProducerClientBasicTest.*"
516
- TEST_EXIT_CODE=$?
517
- if [ $TEST_EXIT_CODE -eq 0 ]; then
518
- echo "The test passed, but it should have failed!"
+ TEST_OUTPUT=$(./tst/producer_test --gtest_filter="ProducerClientBasicTest.*" 2>&1)
+ echo "$TEST_OUTPUT"
+
+ if echo "$TEST_OUTPUT" | grep -q "Segmentation fault"; then
519
+ echo "The tests failed with a segmentation fault detected as expected."
520
+ else
521
+ echo "The test did not fail with a segmentation fault as expected!"
522
exit 1
523
fi
- echo "Test failed as expected."
524
shell: bash
0 commit comments