Skip to content

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