aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/getpid.c
blob: 11d5c50868d0079f88b5c080d35997c101a524d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Basic getpid tests.
# mach: bfin
# cc: -msim
*/

#include <stdio.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
  pid_t pid = getpid();
  if (pid < 0) {
    perror("getpid failed");
    return 1;
  }
  puts("pass");
  return 0;
}