forked from RepoMirrors/bemenu
Unfortunately we can't test curses on cronjob
This commit is contained in:
parent
c2bed7689d
commit
239259aebf
@ -1,6 +1,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <bemenu.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <bemenu.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
@ -10,6 +12,10 @@ int main(int argc, char **argv)
|
||||
{
|
||||
bmDrawMode i;
|
||||
for (i = 0; i < BM_DRAW_MODE_LAST; ++i) {
|
||||
if (i == BM_DRAW_MODE_CURSES && !isatty(STDIN_FILENO)) {
|
||||
printf("Skipping test for mode BM_DRAW_MODE_CURSES, as not running on terminal.\n");
|
||||
continue;
|
||||
}
|
||||
bmMenu *menu = bmMenuNew(i);
|
||||
assert(menu);
|
||||
bmMenuRender(menu);
|
||||
|
Loading…
Reference in New Issue
Block a user