diff options
author | Jack Lloyd <[email protected]> | 2017-09-29 19:39:36 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-29 19:39:36 -0400 |
commit | 83a959e84cb8285b8cb6d427fe0ae96d5ba72af3 (patch) | |
tree | 2814311c531f5697c936797e1c6ec4a2b6531ce8 /src/tests | |
parent | 6ed189c4767f4d4769a15877220dcb571dfcc37e (diff) |
Ensure files are closed before trying to remove it
Windows ...
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_filters.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test_filters.cpp b/src/tests/test_filters.cpp index f48431579..8c858e6be 100644 --- a/src/tests/test_filters.cpp +++ b/src/tests/test_filters.cpp @@ -154,6 +154,10 @@ class Filter_Tests final : public Test result.test_eq("output string", ss.str(), "efgh"); + // ensure files are closed + pipe.reset(); + outfile_read.close(); + if(std::remove(tmp_name.c_str()) != 0) { result.test_failure("Failed to remove temporary file at conclusion of test"); |