autotests: do not incorrectly split spaces in paths of duplicate results
ClosedPublic

Authored by dfaure on Jan 10 2018, 10:06 PM.

Details

Summary

Now using a hand-made loop to avoid the dependency on kcoreaddons
introduced by the earlier commit.

Test Plan

bin/dupes from a srcdir with a space, after duplicating one icon

Diff Detail

Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
dfaure requested review of this revision.Jan 10 2018, 10:06 PM
dfaure created this revision.

Sample output:

********* Start testing of DupeTest *********
Config: Using QtTest library 5.9.2, Qt 5.9.2 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 5.3.1 20160301 [gcc-5-branch revision 233849])
PASS   : DupeTest::initTestCase()
FAIL!  : DupeTest::test_duplicates() 
  The following files are duplicates but not links:
    - /d/kde/src/5/frameworks/breeze\ icons/icons/places/16/user-trash.svg
    - /d/kde/src/5/frameworks/breeze\ icons/icons/places/16/david.svg

   Loc: [/d/kde/src/5/frameworks/breeze icons/autotests/testhelpers.h(42)]
PASS   : DupeTest::cleanupTestCase()
Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 392ms
********* Finished testing of DupeTest *********
sitter accepted this revision.Jan 10 2018, 11:27 PM
This revision is now accepted and ready to land.Jan 10 2018, 11:27 PM
dfaure closed this revision.Jan 10 2018, 11:39 PM