=== modified file 't/05read.c' --- t/05read.c 2012-03-08 21:31:16 +0000 +++ t/05read.c 2012-01-18 16:36:10 +0000 @@ -1,5 +1,4 @@ #include -#include #include "../termkey.h" #include "taplib.h" @@ -9,7 +8,7 @@ TermKey *tk; TermKeyKey key; - plan_tests(21); + plan_tests(19); /* We'll need a real filehandle we can write/read. * pipe() can make us one */ @@ -61,11 +60,6 @@ is_int(termkey_get_buffer_remaining(tk), 256, "buffer free 256 after completion"); - termkey_stop(tk); - - is_int(termkey_getkey(tk, &key), TERMKEY_RES_ERROR, "getkey yields RES_ERROR after termkey_stop()"); - is_int(errno, EINVAL, "getkey error is EINVAL"); - termkey_destroy(tk); return exit_status(); === modified file 'termkey.c' --- termkey.c 2012-03-08 21:31:16 +0000 +++ termkey.c 2012-03-08 21:24:39 +0000 @@ -733,11 +733,6 @@ { int again = 0; - if(!tk->is_started) { - errno = EINVAL; - return TERMKEY_RES_ERROR; - } - #ifdef DEBUG fprintf(stderr, "getkey(force=%d): buffer ", force); print_buffer(tk);