2
0
Fork 0
Browse Source

test-log: patch for exit

legacyPackages
Emery Hemingway 2 years ago
parent
commit
89408c5315
  1. 2
      packages/genodelabs/targets.nix
  2. 16
      packages/genodelabs/test-log.patch

2
packages/genodelabs/targets.nix

@ -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 ];

16
packages/genodelabs/test-log.patch

@ -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);
}
Loading…
Cancel
Save