blob: 5f5277ca55ef91a48d070f507dcc6daa72d30ad3 [file] [log] [blame]
Dmitry V. Levin0c8853c2016-01-02 13:28:43 +00001#include "tests.h"
Dmitry V. Levinf2e29da2016-01-04 23:43:09 +00002#include <assert.h>
Elvira Khabirova9d77b562015-08-21 00:09:32 +03003#include <stdio.h>
4#include <unistd.h>
5#include <sys/syscall.h>
6
7int
8main (void)
9{
Dmitry V. Levinf2e29da2016-01-04 23:43:09 +000010 assert(syscall(__NR_times, 0x42) == -1);
11 printf("times(0x42) = -1 EFAULT (%m)\n");
Elvira Khabirova9d77b562015-08-21 00:09:32 +030012 puts("+++ exited with 0 +++");
13
14 return 0;
15}