Moved tests -> unittests

This commit is contained in:
James Booth
2015-05-28 18:50:55 +01:00
parent 0c99dc7ad6
commit 6d6bb64588
58 changed files with 52 additions and 50 deletions

View File

@@ -121,6 +121,19 @@ _cleanup_dirs(void)
}
}
void
prof_start(void)
{
fd = exp_spawnl("./profanity", NULL);
FILE *fp = fdopen(fd, "r+");
if (fp == NULL) {
assert_true(FALSE);
}
setbuf(fp, (char *)0);
}
void
init_prof_test(void **state)
{
@@ -156,19 +169,6 @@ close_prof_test(void **state)
stbbr_stop();
}
void
prof_start(void)
{
fd = exp_spawnl("./profanity", NULL);
FILE *fp = fdopen(fd, "r+");
if (fp == NULL) {
assert_true(FALSE);
}
setbuf(fp, (char *)0);
}
void
prof_input(char *input)
{