Skip to content
Permalink
Browse files

Fix build on Travis

  • Loading branch information
nyalldawson committed Nov 9, 2018
1 parent be69dd8 commit 6d5188bdb27197d43018ac3c3f173a5c0a8d461a
Showing with 3 additions and 4 deletions.
  1. +3 −4 tests/src/analysis/testqgsprocessingalgs.cpp
@@ -641,7 +641,6 @@ void TestQgsProcessingAlgs::extractBinary()
QString dataDir( TEST_DATA_DIR ); //defined in CmakeLists.txt
const QString source = dataDir + QStringLiteral( "/attachments.gdb|layername=points__ATTACH" );


QVariantMap parameters;
parameters.insert( QStringLiteral( "INPUT" ), source );
parameters.insert( QStringLiteral( "FIELD" ), QStringLiteral( "DATA" ) );
@@ -655,17 +654,17 @@ void TestQgsProcessingAlgs::extractBinary()
QVERIFY( ok );

QCOMPARE( results.count(), 1 );
QCOMPARE( results.value( QStringLiteral( "FOLDER" ) ), folder );
QCOMPARE( results.value( QStringLiteral( "FOLDER" ) ).toString(), folder );

QFile file( folder + "/test1.jpg" );
QVERIFY( file.open( QIODevice::ReadOnly ) );
QByteArray d = file.readAll();
QCOMPARE( QCryptographicHash::hash( d, QCryptographicHash::Md5 ).toHex(), QStringLiteral( "ef3dbc530cc39a545832a6c82aac57b6" ) );
QCOMPARE( QString( QCryptographicHash::hash( d, QCryptographicHash::Md5 ).toHex() ), QStringLiteral( "ef3dbc530cc39a545832a6c82aac57b6" ) );

QFile file2( folder + "/test2.jpg" );
QVERIFY( file2.open( QIODevice::ReadOnly ) );
d = file2.readAll();
QCOMPARE( QCryptographicHash::hash( d, QCryptographicHash::Md5 ).toHex(), QStringLiteral( "4b952b80e4288ca5111be2f6dd5d6809" ) );
QCOMPARE( QString( QCryptographicHash::hash( d, QCryptographicHash::Md5 ).toHex() ), QStringLiteral( "4b952b80e4288ca5111be2f6dd5d6809" ) );
}


0 comments on commit 6d5188b

Please sign in to comment.
You can’t perform that action at this time.