NetBSD/tests/rump/rumpkern/h_client/h_simplecli.c
pooka c2681d795d Add a simple and stress test cases for the rump remote syscall code.
Fun fact: since the server daemonizes into its own process group,
it's not in atf's pgrp.  Use rump_sys_reboot() in atf cleanup to
kill the server after the test.
2010-11-30 22:09:15 +00:00

24 lines
369 B
C

/* $NetBSD: h_simplecli.c,v 1.1 2010/11/30 22:09:15 pooka Exp $ */
#include <sys/types.h>
#include <err.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <rump/rump_syscalls.h>
#include <rump/rumpclient.h>
int
main(void)
{
if (rumpclient_init() == -1)
err(1, "rumpclient init");
if (rump_sys_getpid() > 0)
exit(0);
err(1, "getpid");
}