From f88a9cd6b374676e8f47da7137c8cd77c5bc2ccf Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 16 Aug 2023 10:18:25 -0400 Subject: fs.read(): Catch FileNotFoundError --- test cases/common/220 fs module/meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test cases/common') diff --git a/test cases/common/220 fs module/meson.build b/test cases/common/220 fs module/meson.build index a1e9c44fc..b860fc8a3 100644 --- a/test cases/common/220 fs module/meson.build +++ b/test cases/common/220 fs module/meson.build @@ -142,3 +142,7 @@ assert(fs.stem('foo/bar/baz.dll.a') == 'baz.dll', 'failed to get stem with compo subdir('subdir') subproject('subbie') + +testcase expect_error('File notfound does not exist.') + fs.read('notfound') +endtestcase -- cgit v1.2.3