1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-16 06:29:37 +00:00

Use option_open_file()

This commit is contained in:
Peter Evans 2018-03-09 16:45:39 -06:00
parent 87c7aa9249
commit ab6e6b03db

View File

@ -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);