Merge authors:
Dmitrijs Ledkovs (xnox)
Related merge proposals:
https://code.launchpad.net/~xnox/upstart/fix-qemu-test/+merge/137517
proposed by: Dmitrijs Ledkovs (xnox)
review: Approve - James Hunt (jamesodhunt)
------------------------------------------------------------
revno: 1394 [merge]
committer: James Hunt <[email protected]>
branch nick: upstart
timestamp: Mon 2012-12-03 10:31:15 +0000
message:
* re-merge of lp:~xnox/upstart/fix-qemu-test to fix scenario where
'filename' was not set causing unlink to fail.
modified:
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 'init/tests/test_job_process.c'
--- init/tests/test_job_process.c 2012-12-03 09:40:15 +0000
+++ init/tests/test_job_process.c 2012-12-03 09:59:48 +0000
@@ -4793,8 +4793,8 @@
TEST_ALLOC_SAFE {
/* May alloc space if there is log data */
nih_free (class);
+ TEST_GT (sprintf (filename, "%s/simple-test.log", dirname), 0);
if (!test_alloc_failed) {
- TEST_GT (sprintf (filename, "%s/simple-test.log", dirname), 0);
output = fopen (filename, "r");
TEST_NE_P (output, NULL);
CHECK_FILE_EQ (output, "hello world\r\n", TRUE);
--
upstart-devel mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/upstart-devel