profile: explicitly initialize file name in the test
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 18 May 2014 20:05:35 +0000 (20:05 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 18 May 2014 20:05:35 +0000 (20:05 +0000)
commit44a8c7233aaf6edf77ab864b68a64690562e278a
tree8da3c529c4ba83020be8a06452f471d9cc7c895d
parentb2aa4726d2473c1535192503a075e313ddd2232d
profile: explicitly initialize file name in the test

The instrprofile-write-file-only test was failing on the builtbots.  The runtime
library initialization is explicitly being discarded to avoid the atexit hook.
However, this would also prevent the filename from being initialized.  Thus,
when the write file was invoked, the filename would not be setup, and the test
would fail as the profiling data would never be written out.  Explicitly
initialize the filename to ensure that the data is written out when requested.
This should hopefully finally get the build bots all green again.

llvm-svn: 209099
compiler-rt/test/profile/instrprof-write-file-only.c