diff --git a/compiler/tests/end_to_end_fixture/EndToEndFixture.cpp b/compiler/tests/end_to_end_fixture/EndToEndFixture.cpp index 53164346a..3dc3ca305 100644 --- a/compiler/tests/end_to_end_fixture/EndToEndFixture.cpp +++ b/compiler/tests/end_to_end_fixture/EndToEndFixture.cpp @@ -284,6 +284,12 @@ LLVM_YAML_IS_DOCUMENT_LIST_VECTOR(EndToEndDesc) std::vector loadEndToEndDesc(std::string path) { std::ifstream file(path); + + if (!file.good()) { + std::cerr << "Could not read yaml file: " << path << std::endl; + assert(false); + } + std::string content((std::istreambuf_iterator(file)), (std::istreambuf_iterator()));