Skip to content

Commit 349aad9

Browse files
committed
lkl: fix close disk in boot.c
1 parent 3456a0f commit 349aad9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/lkl/tests/boot.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,11 @@ int main(int argc, char **argv)
822822
lkl_sys_halt();
823823

824824
lkl_disk_remove(disk);
825+
#ifdef __MINGW32__
826+
CloseHandle(disk.handle);
827+
#else
825828
close(disk.fd);
829+
#endif
826830

827831
return g_test_pass;
828832
}

0 commit comments

Comments
 (0)