Skip to content

Unit tests#2

Open
rhersen wants to merge 2 commits into
clibs:masterfrom
rhersen:master
Open

Unit tests#2
rhersen wants to merge 2 commits into
clibs:masterfrom
rhersen:master

Conversation

@rhersen

@rhersen rhersen commented Jun 26, 2012

Copy link
Copy Markdown

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

beakr commented Jan 11, 2013

Copy link
Copy Markdown

+1

@tj

tj commented Jan 11, 2013

Copy link
Copy Markdown
Member

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

@stephenmathieson

Copy link
Copy Markdown
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