Skip to content
Snippets Groups Projects
Commit 14fb8fb9 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Fixed handling of XML schema string in tcov2locv (bug 529855)


Change-Id: I5497757db6c8ce557cfadeee4499f35ddbb39bbb
Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent 7fa00a37
No related branches found
No related tags found
No related merge requests found
...@@ -336,13 +336,14 @@ int main(int argc, char *argv[]) ...@@ -336,13 +336,14 @@ int main(int argc, char *argv[])
// Leave it relative. // Leave it relative.
if (!input_dir) input_dir = "."; if (!input_dir) input_dir = ".";
if (!output_file) output_file = "output.info"; if (!output_file) output_file = "output.info";
std::string xsd_file_str;
if (!xsd_file) { if (!xsd_file) {
const char *ttcn3_dir = getenv("TTCN3_DIR"); const char *ttcn3_dir = getenv("TTCN3_DIR");
if (!ttcn3_dir) { if (!ttcn3_dir) {
std::cerr << "$TTCN3_DIR environment variable is not set" << std::endl; std::cerr << "$TTCN3_DIR environment variable is not set" << std::endl;
param_error = true; param_error = true;
} else { } else {
std::string xsd_file_str = std::string(ttcn3_dir) + P_SEP + std::string("include") + P_SEP + std::string("tcov.xsd"); xsd_file_str = std::string(ttcn3_dir) + P_SEP + std::string("include") + P_SEP + std::string("tcov.xsd");
xsd_file = xsd_file_str.c_str(); xsd_file = xsd_file_str.c_str();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment