Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Use 'exec*()' to perform client and server death tests #77

Merged
merged 2 commits into from
Feb 24, 2022

Conversation

benh
Copy link
Member

@benh benh commented Feb 20, 2022

Before this commit we tried to perform the death part of the client or
server death tests in the forked child process created from
'ASSERT_DEATH()'. This has "worked" but investigating ongoing flaky
tests suggests this approach is insufficient. This commit does less in
the forked child by immediately doing an 'exec*()'.

@benh benh requested a review from CodingCanuck February 20, 2022 20:53
@benh benh self-assigned this Feb 20, 2022
@benh benh force-pushed the benh.death-tests branch 3 times, most recently from ddad59c to 43f0f62 Compare February 20, 2022 22:51
@benh benh requested a review from ArthurBandaryk February 22, 2022 19:53
Copy link
Contributor

@CodingCanuck CodingCanuck left a comment

Choose a reason for hiding this comment

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

I can't say that I understand how fork() and exec*() work, but if the test pass then I'm happy :)

test/client-death-test.cc Show resolved Hide resolved
test/client-death-test.cc Show resolved Hide resolved
test/client-death-test.cc Outdated Show resolved Hide resolved
test/client-death-test.cc Show resolved Hide resolved
test/death-client.cc Show resolved Hide resolved
test/death-client.cc Show resolved Hide resolved
test/death-server.cc Show resolved Hide resolved
test/death-server.cc Outdated Show resolved Hide resolved
benh added 2 commits February 24, 2022 09:01
Before this commit we tried to perform the death part of the client or
server death tests in the forked child process created from
'ASSERT_DEATH()'. This has "worked" but investigating ongoing flaky
tests suggests this approach is insufficient. This commit does less in
the forked child by immediately doing an 'exec*()'.
@aviator-app
Copy link

aviator-app bot commented Feb 24, 2022

PR queued successfully. Your position in queue is: 1

@aviator-app
Copy link

aviator-app bot commented Feb 24, 2022

Branch up-to-date, waiting for checks.

@aviator-app aviator-app bot merged commit c46e112 into main Feb 24, 2022
@aviator-app aviator-app bot deleted the benh.death-tests branch February 24, 2022 19:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EventualsGrpcTest.ServerDeathTest fails on Ubuntu
2 participants