------------------------------------------------------------ revno: 1386 committer: Steve Langasek <[email protected]> branch nick: upstream timestamp: Sun 2012-11-18 00:56:58 -0600 message: fix test which was accidentally relying on a variable persisting after it's gone out of scope. modified: ChangeLog init/tests/test_job_process.c
-- lp:upstart https://code.launchpad.net/~upstart-devel/upstart/trunk Your team Upstart Reviewers is subscribed to branch lp:upstart. To unsubscribe from this branch go to https://code.launchpad.net/~upstart-devel/upstart/trunk/+edit-subscription
=== modified file 'ChangeLog' --- ChangeLog 2012-11-18 05:57:58 +0000 +++ ChangeLog 2012-11-18 06:56:58 +0000 @@ -1,3 +1,8 @@ +2012-11-18 Steve Langasek <[email protected]> + + * init/tests/test_job_process.c: fix test which was accidentally + relying on a variable persisting after it's gone out of scope. + 2012-11-17 Steve Langasek <[email protected]> * init/Makefile.am: set TERM=xterm, so that tests which rely on === modified file 'init/tests/test_job_process.c' --- init/tests/test_job_process.c 2012-11-07 15:17:58 +0000 +++ init/tests/test_job_process.c 2012-11-18 06:56:58 +0000 @@ -9251,9 +9251,9 @@ */ argv0 = argv[0]; if (argv0[0] != '/') { - char path[PATH_MAX]; + char *path = nih_alloc (NULL, PATH_MAX); - assert (getcwd (path, sizeof (path))); + assert (getcwd (path, PATH_MAX)); strcat (path, "/"); strcat (path, argv0);
-- upstart-devel mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel
