From 0cd43f35f4f12ca666d4e1f9a59ff349379d6c3e Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Sun, 18 Dec 2022 12:12:33 -0300 Subject: [PATCH] Match nix loader errors --- spec/compiler/loader/unix_spec.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/compiler/loader/unix_spec.cr b/spec/compiler/loader/unix_spec.cr index cfbe53c7c172..8acf48559eea 100644 --- a/spec/compiler/loader/unix_spec.cr +++ b/spec/compiler/loader/unix_spec.cr @@ -28,10 +28,10 @@ describe Crystal::Loader do end it "parses file paths" do - expect_raises(Crystal::Loader::LoadError, /#{Dir.current}\/foobar\.o.+(No such file or directory|image not found)|Cannot open "#{Dir.current}\/foobar\.o"/) do + expect_raises(Crystal::Loader::LoadError, /#{Dir.current}\/foobar\.o.+(No such file or directory|image not found|no such file)|Cannot open "#{Dir.current}\/foobar\.o"/) do Crystal::Loader.parse(["foobar.o"], search_paths: [] of String) end - expect_raises(Crystal::Loader::LoadError, /(#{Dir.current}\/foo\/bar\.o).+(No such file or directory|image not found)|Cannot open "#{Dir.current}\/foo\/bar\.o"/) do + expect_raises(Crystal::Loader::LoadError, /(#{Dir.current}\/foo\/bar\.o).+(No such file or directory|image not found|no such file)|Cannot open "#{Dir.current}\/foo\/bar\.o"/) do Crystal::Loader.parse(["-l", "foo/bar.o"], search_paths: [] of String) end end