+2016-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
+ configured with --enable-hardcoded-path-in-tests.
+
2016-03-08 Joseph Myers <joseph@codesourcery.com>
[BZ #19677]
+ "--library-path" optional
+ the library path optional
+ the application name
+
+ if --enable-hardcoded-path-in-tests is used, just
+ + the application name
*/
if (restart)
{
if (argc != 1)
{
- printf ("Wrong number of arguments (%d)\n", argc);
+ printf ("Wrong number of arguments (%d) in restart\n", argc);
exit (EXIT_FAILURE);
}
}
else
{
- char *args[] = { argv[1], argv[1],
+ char *args[] = { argv[0],
(char *) "--direct", (char *) "--restart", NULL };
execvpe (args[0], args, envs);
}