From 349aad9b422782ee929004025856d66fd9d19a55 Mon Sep 17 00:00:00 2001 From: Vlad Duplyakin Date: Thu, 9 Jun 2016 21:27:33 +0300 Subject: [PATCH] lkl: fix close disk in boot.c --- tools/lkl/tests/boot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/lkl/tests/boot.c b/tools/lkl/tests/boot.c index 885f9f96d38ea7..06ac9c47258670 100644 --- a/tools/lkl/tests/boot.c +++ b/tools/lkl/tests/boot.c @@ -822,7 +822,11 @@ int main(int argc, char **argv) lkl_sys_halt(); lkl_disk_remove(disk); +#ifdef __MINGW32__ + CloseHandle(disk.handle); +#else close(disk.fd); +#endif return g_test_pass; }