12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
- #include <errno.h>
- #include <err.h>
- #include "config.h"
- #include "test.h"
- static
- void
- reboot_badflags(void)
- {
- int rv;
- warnx("NOTICE: if this kills the system, it's a failure.");
- rv = reboot(15353);
- report_test(rv, errno, EINVAL, "reboot with invalid flags");
- }
- void
- test_reboot(void)
- {
- reboot_badflags();
- }
|