hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit bc3bc7011f1aa099be360f9172d28403f7937d15
parent 8f7b7a27e12bc333e3c8a6ab7937d33d21c07d62
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 23 Apr 2022 18:13:19 +0200

keyctl: remove test

This does not work in some constrained environments.

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mlinux/keyctl/keyctl.ha | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/linux/keyctl/keyctl.ha b/linux/keyctl/keyctl.ha @@ -92,11 +92,3 @@ export fn read(id: serial, buf: []u8) (size | error) = { return keyctl(command::READ, id: u64, buf: uintptr: u64, bufln: u64, 0)?: size; }; - -@test fn keyctl() void = { - const payload = strings::toutf8("hello world"); - const key = add_key("user", "example", payload, PROCESS_KEYRING)!; - let buffer: [64]u8 = [0...]; - const n = read(key, buffer[..])!; - assert(bytes::equal(buffer[..n], payload)); -};