Fix compiling tests under 32-bit arch

This commit is contained in:
Martchus 2017-05-30 23:57:16 +02:00
parent 18b508e684
commit 0ad4f31863
2 changed files with 5 additions and 4 deletions

View File

@ -12,7 +12,7 @@ set(META_GUI_OPTIONAL true)
set(META_JS_SRC_DIR renamingutility)
set(META_VERSION_MAJOR 2)
set(META_VERSION_MINOR 2)
set(META_VERSION_PATCH 2)
set(META_VERSION_PATCH 3)
set(META_NO_TIDY ON)
# add project files
@ -204,7 +204,7 @@ set(REQUIRED_ICONS
)
# find c++utilities
find_package(c++utilities 4.6.0 REQUIRED)
find_package(c++utilities 4.8.0 REQUIRED)
use_cpp_utilities()
include(BasicConfig)

View File

@ -12,6 +12,7 @@
using namespace std;
using namespace TestUtilities;
using namespace TestUtilities::Literals;
using namespace ConversionUtilities;
using namespace Media;
@ -654,7 +655,7 @@ void CliTests::testExtraction()
MediaFileInfo extractedInfo("/tmp/extracted.jpeg");
extractedInfo.open(true);
extractedInfo.parseContainerFormat();
CPPUNIT_ASSERT_EQUAL(22771ul, extractedInfo.size());
CPPUNIT_ASSERT_EQUAL(22771_st, extractedInfo.size());
CPPUNIT_ASSERT(ContainerFormat::Jpeg == extractedInfo.containerFormat());
extractedInfo.invalidate();
@ -667,7 +668,7 @@ void CliTests::testExtraction()
TESTUTILS_ASSERT_EXEC(args3);
extractedInfo.open(true);
extractedInfo.parseContainerFormat();
CPPUNIT_ASSERT_EQUAL(22771ul, extractedInfo.size());
CPPUNIT_ASSERT_EQUAL(22771_st, extractedInfo.size());
CPPUNIT_ASSERT(ContainerFormat::Jpeg == extractedInfo.containerFormat());
remove("/tmp/extracted.jpeg");
remove(mp4File2.data());