utest: add broadcast test

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-21 04:58:21 -04:00
commit f309a087a0

View file

@ -21,6 +21,15 @@ size_t strlen(const char *c)
void _start()
{
int fd = open("/dev/broadcast", 0);
if (fd < 0)
while (1)
;
char msg[] = "Hello, userspace!\n";
write(fd, msg, strlen(msg));
close(fd);
while (1)
;
}