mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
1368b914e9
Now that all port tests live under testsuite/sim/*/, and none live in testsuite/ directly, flatten the structure by moving all of the dirs under testsuite/sim/ to testsuite/ directly. We need to stop passing --tool to dejagnu so that it searches all dirs and not just ones that start with "sim". Since we have no other dirs in this tree, and no plans to add any, should be fine.
17 lines
369 B
C
17 lines
369 B
C
/* Check that the simulator has chdir:ed to the --sysroot argument
|
|
#sim: --sysroot=@srcdir@
|
|
(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;
|
|
}
|