mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
Fix ExcludedFilesTest on macOS
Use the same logic to find sync-exclude as check_csync_exclude.c
This commit is contained in:
parent
0e3e9d5991
commit
3265948458
1 changed files with 2 additions and 6 deletions
|
@ -11,9 +11,7 @@
|
||||||
|
|
||||||
using namespace OCC;
|
using namespace OCC;
|
||||||
|
|
||||||
#define STR_(X) #X
|
#define EXCLUDE_LIST_FILE SOURCEDIR"/../sync-exclude.lst"
|
||||||
#define STR(X) STR_(X)
|
|
||||||
#define BIN_PATH STR(OWNCLOUD_BIN_PATH)
|
|
||||||
|
|
||||||
class TestExcludedFiles: public QObject
|
class TestExcludedFiles: public QObject
|
||||||
{
|
{
|
||||||
|
@ -31,9 +29,7 @@ private slots:
|
||||||
QVERIFY(!excluded.isExcluded("/a/.b", "/a", keepHidden));
|
QVERIFY(!excluded.isExcluded("/a/.b", "/a", keepHidden));
|
||||||
QVERIFY(excluded.isExcluded("/a/.b", "/a", excludeHidden));
|
QVERIFY(excluded.isExcluded("/a/.b", "/a", excludeHidden));
|
||||||
|
|
||||||
QString path(BIN_PATH);
|
excluded.addExcludeFilePath(EXCLUDE_LIST_FILE);
|
||||||
path.append("/sync-exclude.lst");
|
|
||||||
excluded.addExcludeFilePath(path);
|
|
||||||
excluded.reloadExcludes();
|
excluded.reloadExcludes();
|
||||||
|
|
||||||
QVERIFY(!excluded.isExcluded("/a/b", "/a", keepHidden));
|
QVERIFY(!excluded.isExcluded("/a/b", "/a", keepHidden));
|
||||||
|
|
Loading…
Reference in a new issue