libcalamares: repair test

The calamaresstyle tool reformatted a bunch of R-strings,
leading to test failures. Mark them with INDENT-OFF so
astyle doesn't break them again.
This commit is contained in:
Adriaan de Groot 2023-09-03 23:14:02 +02:00
parent 30f65a0b62
commit 4b3278058b

View File

@ -603,7 +603,7 @@ LibCalamaresTests::testStringTruncation()
Logger::setupLogLevel( Logger::LOGDEBUG ); Logger::setupLogLevel( Logger::LOGDEBUG );
using namespace Calamares::String; using namespace Calamares::String;
// *INDENT-OFF*
const QString longString( R"(--- const QString longString( R"(---
--- src/libcalamares/utils/String.h --- src/libcalamares/utils/String.h
+++ src/libcalamares/utils/String.h +++ src/libcalamares/utils/String.h
@ -623,6 +623,7 @@ LibCalamaresTests::testStringTruncation()
+ int atStart = 0; + int atStart = 0;
+ int atEnd = 0; + int atEnd = 0;
)" ); )" );
// *INDENT-ON*
const int sufficientLength = 812; const int sufficientLength = 812;
// There's 18 lines in all // There's 18 lines in all
@ -685,9 +686,13 @@ LibCalamaresTests::testStringTruncationShorter()
using namespace Calamares::String; using namespace Calamares::String;
// *INDENT-OFF*
const QString longString( R"(Some strange string artifacts appeared, leading to `{1?}` being const QString longString( R"(Some strange string artifacts appeared, leading to `{1?}` being
displayed in various user-facing messages. These have been removed displayed in various user-facing messages. These have been removed
and the translations updated.)" ); and the translations updated.)" );
// *INDENT-ON*
const char NEWLINE = '\n'; const char NEWLINE = '\n';
const int insufficientLength = 42; const int insufficientLength = 42;