test-log: patch for exit

This commit is contained in:
Ehmry - 2020-05-19 16:00:38 +05:30
parent 53afe72493
commit 89408c5315
2 changed files with 18 additions and 0 deletions

View File

@ -37,6 +37,8 @@ with ports; {
# The following are tests that never exit
# and have no conventions on log output.
"test-log".patches = [ ./test-log.patch ];
"test-pci".patches = [ ./test-pci.patch ];
"test-signal".patches = [ ./test-signal.patch ];

View File

@ -0,0 +1,16 @@
commit aba419c7ff040d75151b35563fa43b60b17e1faa
Author: Emery Hemingway <ehmry@posteo.net>
Date: Tue May 19 11:31:17 2020 +0530
test-log: exit
diff --git a/repos/base/src/test/log/main.cc b/repos/base/src/test/log/main.cc
index a07a36a781..1c2e205d0c 100644
--- a/repos/base/src/test/log/main.cc
+++ b/repos/base/src/test/log/main.cc
@@ -58,4 +58,5 @@ void Component::construct(Genode::Env &env)
log(Cstring(buf));
log("Test done.");
+ env.parent().exit(0);
}