From bb90a2d41d6f20f191031d015948603bc3392128 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Fri, 23 Mar 2012 12:36:20 +0100 Subject: [PATCH] Let cap_integrity test be more expressive By using the `compare_output_to` method from the run tool instead of using regexp in the cap_integrity run-script, the test outputs the undesired lines instead of just signaling that the test failed. --- base/run/cap_integrity.run | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/base/run/cap_integrity.run b/base/run/cap_integrity.run index 81b8a5b0b..718e8c395 100644 --- a/base/run/cap_integrity.run +++ b/base/run/cap_integrity.run @@ -32,8 +32,5 @@ match_max -d 100000 run_genode_until {child exited with exit value 0.*} 60 -if {[regexp {\[init\] test message} $output]} { - exit -1 -} - -puts "Test succeeded" +grep_output {\[init\] test message} +compare_output_to { }