HomePhabricator

[Support] Fix unit test for fs::is_local

Authored by petarj on May 8 2019, 7:42 AM.

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.

llvm-svn: 360259

Details

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