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

Unit tests #2

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

Unit tests #2

wants to merge 2 commits into from

Conversation

rhersen
Copy link

@rhersen rhersen commented Jun 26, 2012

I wrote some unit tests for commander.c. I had to make exit() a member function of struct command in order to mock it, and I'm also using setjmp/longjmp to stop execution and continue the test suite whenever the mocked exit() is called.

@beakr
Copy link

beakr commented Jan 11, 2013

+1

@tj
Copy link
Member

tj commented Jan 11, 2013

+1 as well, just need to review and update this a bit

@stephenmathieson
Copy link
Member

idk how i feel about command_t->exit, but needs a rebase either way

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.

4 participants