Dmitry V. Levin | 0c8853c | 2016-01-02 13:28:43 +0000 | [diff] [blame] | 1 | #include "tests.h" |
Dmitry V. Levin | f2e29da | 2016-01-04 23:43:09 +0000 | [diff] [blame] | 2 | #include <assert.h> |
Elvira Khabirova | 9d77b56 | 2015-08-21 00:09:32 +0300 | [diff] [blame] | 3 | #include <stdio.h> |
| 4 | #include <unistd.h> |
| 5 | #include <sys/syscall.h> |
| 6 | |
| 7 | int |
| 8 | main (void) |
| 9 | { |
Dmitry V. Levin | f2e29da | 2016-01-04 23:43:09 +0000 | [diff] [blame] | 10 | assert(syscall(__NR_times, 0x42) == -1); |
| 11 | printf("times(0x42) = -1 EFAULT (%m)\n"); |
Elvira Khabirova | 9d77b56 | 2015-08-21 00:09:32 +0300 | [diff] [blame] | 12 | puts("+++ exited with 0 +++"); |
| 13 | |
| 14 | return 0; |
| 15 | } |