Merging in 2.0.2.

This commit is contained in:
Geoffrey Challen
2017-01-09 22:37:50 -05:00
parent a0406ec181
commit 50cf3276e7
118 changed files with 1350 additions and 3158 deletions

View File

@@ -44,27 +44,19 @@
#include "test.h"
static
int
void
reboot_badflags(void)
{
int rv;
tprintf("(This should not kill the system...)\n");
printf("(This should not kill the system...)\n");
report_begin("reboot with invalid flags");
rv = reboot(15353);
return report_check(rv, errno, EINVAL);
report_check(rv, errno, EINVAL);
}
void
test_reboot(void)
{
int ntests = 0, lost_points = 0;
int result;
ntests++;
result = reboot_badflags();
handle_result(result, &lost_points);
if(!lost_points)
success(TEST161_SUCCESS, SECRET, "/testbin/badcall");
reboot_badflags();
}