Commit ae5d13cf authored by Laurent Montel's avatar Laurent Montel 😁

Add test about str with "<" which breaks parsing

parent 219e5cd8
# < create a problem during parsing
addheader "X-Sieve-Filtered" "<kim@job.example.com>";
# < create a problem during parsing
addheader "X-Sieve-Filtered" "<kim@job.example.com>";
......@@ -94,6 +94,7 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts()
QEXPECT_FAIL("regexp", "Expected failure on regexp file. Problem with header + comparator", Continue);
QEXPECT_FAIL("test-current-date", "Expected failure on current-date file. We depend against current date", Continue);
QEXPECT_FAIL("test-date", "Expected failure on date file. We depend against current date", Continue);
QEXPECT_FAIL("problem-with-inferior-char", "Expected failure on problem-with-inferior-char file. \"<\" is start of tag... => it will create problem", Continue);
QCOMPARE(proc.exitCode(), 0);
}
}
......@@ -161,6 +162,7 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
QTest::newRow("hasflag") << QStringLiteral("hasflag") << false << true;
QTest::newRow("setflag") << QStringLiteral("setflag") << false << true;
QTest::newRow("add-header") << QStringLiteral("add-header") << false << true;
QTest::newRow("problem-with-inferior-char") << QStringLiteral("problem-with-inferior-char") << false << true;
}
QTEST_MAIN(SieveEditorGraphicalModeWidgetTest)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment