]> git.proxmox.com Git - qemu.git/blame - tests/cris/check_openpf2.c
tests/cris: Fix some errors and potential crashes
[qemu.git] / tests / cris / check_openpf2.c
CommitLineData
dd43edf4
TS
1/* Check that the simulator has chdir:ed to the --sysroot argument
2#sim: --sysroot=@srcdir@
3 (or that --sysroot is applied to relative file paths). */
4
5#include <stdio.h>
6#include <stdlib.h>
7#include <errno.h>
8int main (int argc, char *argv[])
9{
10 FILE *f = fopen ("check_openpf2.c", "rb");
11 if (f == NULL)
12 abort ();
2917dce4 13 fclose(f);
dd43edf4
TS
14 printf ("pass\n");
15 return 0;
16}