From e0ef408197c3e7d27231e6215cd860b2d192ec32 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Mon, 1 Apr 2024 22:53:19 +0200 Subject: [PATCH] WIP: Add hard check that temp files are unkinked --- lib/aruba/processes/spawn_process.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/aruba/processes/spawn_process.rb b/lib/aruba/processes/spawn_process.rb index c869871c..e8e7b49c 100644 --- a/lib/aruba/processes/spawn_process.rb +++ b/lib/aruba/processes/spawn_process.rb @@ -363,6 +363,7 @@ def read_temporary_output_file(file) data = file.read file.close file.unlink + raise "Unlink failed!" unless file.path.nil? data.force_encoding('UTF-8') end