diff options
author | JTL <jtl999@users.noreply.github.com> | 2018-12-29 02:32:25 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2018-12-29 02:32:25 +0300 |
commit | dd5665c6563f6185532c4dc76896f4220fd3c8e3 (patch) | |
tree | cae25393140d0d64db268daafefb518a0288afc7 /tests/TestCli.cpp | |
parent | b1ff346f6311936a342397eaaca262a6f08e19c7 (diff) |
Multiple macOS fixes and include keepassxc-cli in DMG (#2165)
* Fixes including keepassxc-cli when building KeePassXC dmg on Mac.
resolves #1697
* Fix Qt search path and Properties display on macOS
* Simplify packaging POST_BUILD fixups
* Various fixes to get cli to run on macos
* Correct cli tests on macOS
* Several macOS related GUI test fixes
Diffstat (limited to 'tests/TestCli.cpp')
-rw-r--r-- | tests/TestCli.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/tests/TestCli.cpp b/tests/TestCli.cpp index 812e16166..6a4ed3398 100644 --- a/tests/TestCli.cpp +++ b/tests/TestCli.cpp @@ -560,26 +560,11 @@ void TestCli::testEstimate() QTextStream out(m_stdoutFile.data()); in << input << endl; - auto inEnd = in.pos(); in.seek(0); - estimateCmd.execute({"estimate"}); - auto outEnd = out.pos(); + estimateCmd.execute({"estimate", "-a"}); out.seek(0); auto result = out.readAll(); - QVERIFY(result.startsWith("Length " + length)); - QVERIFY(result.contains("Entropy " + entropy)); - QVERIFY(result.contains("Log10 " + log10)); - - // seek to end of stream - in.seek(inEnd); - out.seek(outEnd); - - in << input << endl; - in.seek(inEnd); - estimateCmd.execute({"estimate", "-a"}); - out.seek(outEnd); - result = out.readAll(); - QVERIFY(result.startsWith("Length " + length)); + QVERIFY(result.contains("Length " + length)); QVERIFY(result.contains("Entropy " + entropy)); QVERIFY(result.contains("Log10 " + log10)); for (const auto& string : asConst(searchStrings)) { |