Make use of ::testing::TempDir to access tmp dir.

PiperOrigin-RevId: 275129105
Change-Id: I892af36c4dd2879c11b33fd7b7085a2f7ec7730a
This commit is contained in:
Brian Atkinson 2019-10-16 15:38:48 -07:00 committed by TensorFlower Gardener
parent b49c792c6b
commit c9c0e70d0b
2 changed files with 1 additions and 4 deletions

View File

@ -108,9 +108,6 @@ tf_cc_test(
data = [
"//tensorflow/lite:testdata/test_input.csv",
],
tags = [
"no_oss",
],
deps = [
":diff_analyzer",
"//tensorflow/core:lib",

View File

@ -31,7 +31,7 @@ TEST(DiffAnalyzerTest, ZeroDiff) {
ASSERT_EQ(diff_analyzer.ReadFiles(filename, filename), kTfLiteOk);
string output_file =
tensorflow::io::JoinPath(FLAGS_test_tmpdir + "diff_report.csv");
tensorflow::io::JoinPath(::testing::TempDir(), "diff_report.csv");
ASSERT_EQ(diff_analyzer.WriteReport(output_file), kTfLiteOk);
std::string content;