Fix 'noux_terminal_fs' test

Fixes #1213.
This commit is contained in:
Christian Prochaska 2014-07-22 19:43:44 +02:00 committed by Norman Feske
parent 1bc8de83ff
commit 72bb821990
2 changed files with 7 additions and 2 deletions

View File

@ -84,6 +84,11 @@ class Vfs::Terminal_file_system : public Single_file_system
return READ_OK;
}
Ftruncate_result ftruncate(Vfs_handle *vfs_handle, size_t) override
{
return FTRUNCATE_OK;
}
bool check_unblock(Vfs_handle *vfs_handle, bool rd, bool wr, bool ex) override
{
if (rd && (_terminal.avail() > 0))

View File

@ -157,7 +157,7 @@ append config {
<if-arg key="label" value=""/><child name="terminal_noux"/>
</service>
<service name="Terminal">
<if-arg key="label" value="noux(terminal_fs)"/><child name="terminal_test"/>
<if-arg key="label" value="terminal_fs"/><child name="terminal_test"/>
</service>
<any-service><parent/><any-child/></any-service>
</route>
@ -167,7 +167,7 @@ append config {
<tar name="bash.tar" />
<dir name="ram"> <fs label="root" /> </dir>
<dir name="dev"> <terminal name="terminal" /> </dir>
<dir name="dev"> <terminal name="terminal" label="terminal_fs" /> </dir>
</fstab>
<start name="/bin/bash">
<env name="TERM" value="linux" />