HomePhabricator

[Support] Fix unit test for fs::is_local

Description

[Support] Fix unit test for fs::is_local

Close the temporary file after the test is done using it.
If it is not closed and the file was created on NFS, it will cause the test
to fail. The problem happens in the cleanup process afterwards. It first
tries to delete the file but it is not really deleted. Afterwards, the
program fails to delete the directory containing the file, causing the whole
test to fail.

Patch by Milos Stojanovic.

Details

Committed
petarjMay 8 2019, 7:42 AM
Parents
rL360258: [Sema][OpenCL] Make address space conversions a bit stricter.
Branches
Unknown
Tags
Unknown