MPS issue job003472

TitleTest output always goes to mps-XXXXXX.log on some platforms
Statusclosed
Priorityoptional
Assigned userGareth Rees
OrganizationRavenbrook
DescriptionThe output of each MPS test run is supposed to go to a different temporary log file. But on FreeBSD [1], it always goes to mps-XXXXXX.log.
AnalysisThat's because code/comm.gmk says:

    OUTPUT=$$(mktemp /tmp/mps-XXXXXX.log);

which works on Linux [2], but not on OS X and FreeBSD, where the Xs have to be at the end of the pattern.
How foundcustomer
Evidence[1] <https://jenkins.opendylan.org/view/MPS/job/mps-freebsd-x86/2/console>
[2] <https://jenkins.opendylan.org/view/MPS/job/mps-linux-precise-x86_64/2/console>
Created byGareth Rees
Created on2013-05-06 19:00:22
Last modified byGareth Rees
Last modified on2013-05-06 19:01:25
History2013-05-06 GDR Created.

Fixes

Change Effect Date User Description
181562 closed 2013-05-06 19:01:25 Gareth Rees Put XXXXXX at the end of the pattern argument to mktemp, so that it works on FreeBSD and OS X.