[PATCH] D47675: [test-suite][RFC] Using Google Benchmark Library on Harris Kernel
Brian Homerding via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 25 11:43:34 PDT 2018
homerdin added inline comments.
================
Comment at: MicroBenchmarks/harris/main.cpp:87
+ std::ofstream myfile;
+ myfile.open("output.txt");
+ for (int i = 0; i < height - 2; i++) {
----------------
This will write `output.txt` into whichever directory lit is run in. You can set the working directory that the test will run in by passing an argument to `llvm_test_run()` > `llvm_test_run(WORKDIR ${CMAKE_CURRENT_BINARY_DIR})`
https://reviews.llvm.org/D47675
More information about the llvm-commits
mailing list