mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-21 23:29:16 +00:00
Use option_open_file()
This commit is contained in:
parent
87c7aa9249
commit
ab6e6b03db
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user