22 months ago | Paul Boddie | file changeset files shortlog | Added an error member to the file data structure, changing the client library interface so that client_open returns a structure whose error member may be tested, directly or using the new client_opened function, to determine the reason for failure, this being done in preference to having a global, shared errno variable. Updated the tests for the above library changes, also making test configuration file naming consistent with executable naming, and introducing better output to assess the successful completion of tests. |
paul@158 | 1 | -- vim:set ft=lua: |
paul@158 | 2 | |
paul@158 | 3 | local L4 = require("L4"); |
paul@158 | 4 | |
paul@158 | 5 | local l = L4.default_loader; |
paul@158 | 6 | |
paul@160 | 7 | local pipe_server = l:new_channel(); |
paul@158 | 8 | |
paul@158 | 9 | l:startv({ |
paul@158 | 10 | caps = { |
paul@160 | 11 | server = pipe_server:svr(), |
paul@160 | 12 | }, |
paul@160 | 13 | log = { "pipes", "r" }, |
paul@160 | 14 | }, |
paul@394 | 15 | "rom/pipe_server", "10"); |
paul@160 | 16 | |
paul@160 | 17 | local host_server = l:new_channel(); |
paul@160 | 18 | |
paul@160 | 19 | l:startv({ |
paul@160 | 20 | caps = { |
paul@160 | 21 | pipes = pipe_server, |
paul@160 | 22 | server = host_server:svr(), |
paul@158 | 23 | }, |
paul@158 | 24 | log = { "server", "r" }, |
paul@158 | 25 | }, |
paul@394 | 26 | "rom/host_server", "10"); |
paul@158 | 27 | |
paul@158 | 28 | l:startv({ |
paul@158 | 29 | caps = { |
paul@160 | 30 | server = host_server, |
paul@158 | 31 | }, |
paul@158 | 32 | log = { "client", "g" }, |
paul@158 | 33 | }, |
paul@402 | 34 | "rom/dstest_file_readdir", "rom", "23"); |