summaryrefslogtreecommitdiff
path: root/t/16term-read.c
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2020-05-15 01:21:19 +0100
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2020-05-15 01:21:19 +0100
commit0f0c44c3f3f99b0a7c75df5583df0d36da492a26 (patch)
treeb8c0a9cabb07dfdbc3aecfb2bd9d4b1dec0a6279 /t/16term-read.c
parent757167b7dbdb0d0dcb0a60ff65ab3a0034fb5f73 (diff)
Perform unit tests using tickit_term_build() instead of the legacy tickit_term_new() + tickit_term_set_*() mutators
Diffstat (limited to 't/16term-read.c')
-rw-r--r--t/16term-read.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/t/16term-read.c b/t/16term-read.c
index ced2e3d..587aff7 100644
--- a/t/16term-read.c
+++ b/t/16term-read.c
@@ -30,9 +30,12 @@ int main(int argc, char *argv[])
* pipe() can make us one */
pipe(fd);
- tt = tickit_term_new_for_termtype("xterm");
-
- tickit_term_set_input_fd(tt, fd[0]);
+ tt = tickit_term_build(&(struct TickitTermBuilder){
+ .termtype = "xterm",
+ .open = TICKIT_OPEN_FDS,
+ .input_fd = fd[0],
+ .output_fd = -1,
+ });
is_int(tickit_term_get_input_fd(tt), fd[0], "tickit_term_get_input_fd");