8 static void do_prepare (void);
9 #define PREPARE(argc, argv) do_prepare ()
10 static int do_test (void);
11 #define TEST_FUNCTION do_test ()
13 #include "../test-skeleton.c"
21 int fd
= create_temp_file ("testscript", &fname
);
22 dprintf (fd
, "echo foo\n");
31 if (setenv ("PATH", test_dir
, 1) != 0)
33 puts ("setenv failed");
37 char *argv
[] = { fname
, NULL
};
38 execvp (basename (fname
), argv
);
40 /* If we come here, the execvp call failed. */