Skip to content

Commit

Permalink
fix: no useless newline in --diff display
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-olivier committed Jul 2, 2021
1 parent db86de3 commit 0f1a95e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ void IOTester::VSCodeDiff(const Test &test, const std::string &output)
{
const std::string filename1 = "\"/tmp/GOT(" + test.m_name + ")\"";
const std::string filename2 = "\"/tmp/EXPECTED(" + test.m_name + ")\"";
const std::string s1 = "echo \"" + output + "\" > " + filename1;
const std::string s2 = "echo \"" + test.m_output + "\" > " + filename2;
const std::string s1 = "printf \"" + output + "\" > " + filename1;
const std::string s2 = "printf \"" + test.m_output + "\" > " + filename2;

system(std::string(s1 + " ; " + s2).c_str());
system(std::string(VSCodePath + filename1 + " " + filename2).c_str());
Expand Down
1 change: 1 addition & 0 deletions src/Updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ void IOTester::changelog() noexcept
"> [FIX] cleaner display",
BLU "(1.8.1)" RESET,
"> [FIX] the test pid is killed only if process is not terminated",
"> [FIX] no useless newline in --diff display",
"> [FIX] missing display if --diff and Visual Studio Code not installed",
"> [FIX] code is now in camelCase",
"> [FIX] args parser",
Expand Down

0 comments on commit 0f1a95e

Please sign in to comment.