Improve timeout handling on POSIX and Windows. Add missing test
Improve timeout handling on POSIX and Windows. Add missing test

Link: https://github.com/nexB/scancode-toolkit/issues/521
Signed-off-by: Philippe Ombredanne <ca95c4a6a4931f366cbdaf5878c5016609417d37@nexb.com>
yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit,yashdsaraf/scancode-toolkit