Make use of ::testing::TempDir to access tmp dir.
PiperOrigin-RevId: 275129105 Change-Id: I892af36c4dd2879c11b33fd7b7085a2f7ec7730a
This commit is contained in:
parent
b49c792c6b
commit
c9c0e70d0b
@ -108,9 +108,6 @@ tf_cc_test(
|
||||
data = [
|
||||
"//tensorflow/lite:testdata/test_input.csv",
|
||||
],
|
||||
tags = [
|
||||
"no_oss",
|
||||
],
|
||||
deps = [
|
||||
":diff_analyzer",
|
||||
"//tensorflow/core:lib",
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user