Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bazel/envoy_build_system.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def envoy_cc_test(name,
srcs = srcs,
data = data,
deps = deps,
repository = repository,
tags = test_lib_tags,
)
native.cc_test(
Expand All @@ -104,7 +105,7 @@ def envoy_cc_test(name,
linkopts = ["-pthread"],
linkstatic = 1,
deps = [
repository + name + "_lib",
":" + name + "_lib",
repository + "//test:main"
],
tags = tags + ["coverage_test"],
Expand Down
5 changes: 5 additions & 0 deletions test/test_common/environment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ std::string TestEnvironment::temporaryFileSubstitute(const std::string& path,
std::string out_json_string;
{
std::ifstream file(tmp_json_path);
if (file.fail()) {
std::cerr << "failed to open: " << tmp_json_path << std::endl;
RELEASE_ASSERT(false);
}

std::stringstream file_string_stream;
file_string_stream << file.rdbuf();
out_json_string = file_string_stream.str();
Expand Down