mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-15 11:45:27 +08:00

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.
22 lines
360 B
C
22 lines
360 B
C
/* Check that the right machine name appears in the uname result.
|
|
#notarget: *-*-elf
|
|
*/
|
|
#include <sys/utsname.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int main (void)
|
|
{
|
|
struct utsname buf;
|
|
if (uname (&buf) != 0
|
|
|| strcmp (buf.machine,
|
|
#ifdef __arch_v32
|
|
"crisv32"
|
|
#else
|
|
"cris"
|
|
#endif
|
|
) != 0)
|
|
abort ();
|
|
printf ("pass\n");
|
|
exit (0);
|
|
}
|