binutils-gdb/sim/testsuite/cris/c/openpf2.c
Mike Frysinger 927f25ebac sim: cris: replace @srcdir@ test extension with $srcdir/$subdir
The common framework supports $srcdir & $subdir replacements already,
so replace the custom @srcdir@ logic with those.  Since the replace
happens in slurp_options that cris already uses, we don't have any
logic to port over there.  We have to duplicate that into the cris
slurp_rv helper though.
2021-11-16 20:16:18 -05:00

17 lines
376 B
C

/* Check that the simulator has chdir:ed to the --sysroot argument
#sim: --sysroot=$srcdir/$subdir
(or that --sysroot is applied to relative file paths). */
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
int main (int argc, char *argv[])
{
FILE *f = fopen ("openpf2.c", "rb");
if (f == NULL)
abort ();
fclose (f);
printf ("pass\n");
return 0;
}