From 2aa64716080e22d9df91d35e142d8ba82c9f0996 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 29 Nov 2019 11:26:22 +0100 Subject: [PATCH] test/depot_query: add test for zero-sized archives This test covers the situation where depot_query evaluates depot content that is incompletely extracted. In particular, if the 'archives' file already exists but has a size of zero, depot_query would produce a page fault. This situation can be manually provoked by deliberately creating a zero-sized archives file for any otherwise correct pkg. This patch also fixes the success indicator of the test. It wrongly matched an early line of the log output. Issue #3557 --- repos/gems/run/depot_query.run | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/repos/gems/run/depot_query.run b/repos/gems/run/depot_query.run index de6610313..19af356b7 100644 --- a/repos/gems/run/depot_query.run +++ b/repos/gems/run/depot_query.run @@ -52,7 +52,25 @@ install_config { - + + + + + + + + + + + + + + + + + + + @@ -94,6 +112,7 @@ install_config { + @@ -121,5 +140,5 @@ build_boot_image { init depot_query depot_deploy vfs.lib.so } append qemu_args " -nographic " -run_genode_until {.*child "test-fs_report" exited with exit value 0.*\n} 30 +run_genode_until {.*\] child "test-fs_report" exited with exit value 0.*\n} 30