summaryrefslogtreecommitdiff
path: root/source/test/programs/signals.c
blob: 7a9af25197f1a10b2786a0e6652fe3360d81c225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "../../kit_test/test.h"

#include <stdlib.h>
#include <stdio.h>

TEST("abort") {
  printf("** ABORT\n\n");
  abort();
}

TEST("invalid access") {
  printf("** INVALID ACCESS\n\n");
  *(volatile int *) NULL = 42;
}

int main(int argc, char **argv) {
  printf(" %% run_tests\n\n");
  if (run_tests(argc, argv) != 1)
    return 1;

  return 0;
}