CreateTestFile doesn't need to crash on failure.
An expectation should, for all existing cases, work fine. This may result in later assertions also failing, but it should be fairly benign. PiperOrigin-RevId: 294267513 Change-Id: I2ad3e31d9151306a6bc29ef78199739c6d1583ee
This commit is contained in:
parent
2b9c3b7f34
commit
00302ef285
@ -36,7 +36,7 @@ namespace {
|
||||
string CreateTestFile(Env* env, const string& filename, int length) {
|
||||
string input(length, 0);
|
||||
for (int i = 0; i < length; i++) input[i] = i;
|
||||
TF_CHECK_OK(WriteStringToFile(env, filename, input));
|
||||
TF_EXPECT_OK(WriteStringToFile(env, filename, input));
|
||||
return input;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user