/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */

#include "rrutil.h"

static void handle_usr1(__attribute__((unused)) int sig) {
  test_assert("Shouldn't have caught SIGUSR1" && 0);
}

int main(void) {
  /* NB: unlike most other rr tests, this one verifies that rr
   * can "intervene" in execution to block signals, for the
   * purposes of unit tests.  This test *will* fail if not run
   * under rr with the right command-line options. */
  signal(SIGUSR1, handle_usr1);
  raise(SIGUSR1);

  atomic_puts("EXIT-SUCCESS");
  return 0;
}
