root / tests / tcg / cris / check_openpf2.c @ c09015dd
History | View | Annotate | Download (374 Bytes)
1 | dd43edf4 | ths | /* Check that the simulator has chdir:ed to the --sysroot argument
|
---|---|---|---|
2 | dd43edf4 | ths | #sim: --sysroot=@srcdir@
|
3 | dd43edf4 | ths | (or that --sysroot is applied to relative file paths). */
|
4 | dd43edf4 | ths | |
5 | dd43edf4 | ths | #include <stdio.h> |
6 | dd43edf4 | ths | #include <stdlib.h> |
7 | dd43edf4 | ths | #include <errno.h> |
8 | dd43edf4 | ths | int main (int argc, char *argv[]) |
9 | dd43edf4 | ths | { |
10 | dd43edf4 | ths | FILE *f = fopen ("check_openpf2.c", "rb"); |
11 | dd43edf4 | ths | if (f == NULL) |
12 | dd43edf4 | ths | abort (); |
13 | 2917dce4 | Stefan Weil | fclose(f); |
14 | dd43edf4 | ths | printf ("pass\n");
|
15 | dd43edf4 | ths | return 0; |
16 | dd43edf4 | ths | } |