From ab6e6b03db3dc8e972f6691db572e078ed633305 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Fri, 9 Mar 2018 16:45:39 -0600 Subject: [PATCH] Use option_open_file() --- tests/apple2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/apple2.c b/tests/apple2.c index 5e621d5..a5a7b92 100644 --- a/tests/apple2.c +++ b/tests/apple2.c @@ -51,12 +51,12 @@ Test(apple2, boot) FILE *stream1, *stream2; // And, as you may guess, it's ok to reboot the machine. - option_read_file(&stream1, "../data/zero.img"); + option_open_file(&stream1, "../data/zero.img", "r"); vm_di_set(VM_DISK1, stream1); cr_assert_eq(apple2_boot(mach), OK); - option_read_file(&stream2, "../data/bad.img"); + option_open_file(&stream2, "../data/bad.img", "r"); vm_di_set(VM_DISK2, stream2); cr_assert_neq(apple2_boot(mach), OK);