profile: Use unique directory for tests that write default profile file

Fix a couple of new tests that were reverted because they were causing
intermittent test failures since they were writing the same default
"default.profraw" file. Fixed by creating a unique directory and
running tests in that directory.

Patch by Teresa Johnson. Thanks!

git-svn-id: 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed