Fix compiling tests under 32-bit arch
This commit is contained in:
parent
18b508e684
commit
0ad4f31863
|
@ -12,7 +12,7 @@ set(META_GUI_OPTIONAL true)
|
||||||
set(META_JS_SRC_DIR renamingutility)
|
set(META_JS_SRC_DIR renamingutility)
|
||||||
set(META_VERSION_MAJOR 2)
|
set(META_VERSION_MAJOR 2)
|
||||||
set(META_VERSION_MINOR 2)
|
set(META_VERSION_MINOR 2)
|
||||||
set(META_VERSION_PATCH 2)
|
set(META_VERSION_PATCH 3)
|
||||||
set(META_NO_TIDY ON)
|
set(META_NO_TIDY ON)
|
||||||
|
|
||||||
# add project files
|
# add project files
|
||||||
|
@ -204,7 +204,7 @@ set(REQUIRED_ICONS
|
||||||
)
|
)
|
||||||
|
|
||||||
# find c++utilities
|
# find c++utilities
|
||||||
find_package(c++utilities 4.6.0 REQUIRED)
|
find_package(c++utilities 4.8.0 REQUIRED)
|
||||||
use_cpp_utilities()
|
use_cpp_utilities()
|
||||||
include(BasicConfig)
|
include(BasicConfig)
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace TestUtilities;
|
using namespace TestUtilities;
|
||||||
|
using namespace TestUtilities::Literals;
|
||||||
using namespace ConversionUtilities;
|
using namespace ConversionUtilities;
|
||||||
using namespace Media;
|
using namespace Media;
|
||||||
|
|
||||||
|
@ -654,7 +655,7 @@ void CliTests::testExtraction()
|
||||||
MediaFileInfo extractedInfo("/tmp/extracted.jpeg");
|
MediaFileInfo extractedInfo("/tmp/extracted.jpeg");
|
||||||
extractedInfo.open(true);
|
extractedInfo.open(true);
|
||||||
extractedInfo.parseContainerFormat();
|
extractedInfo.parseContainerFormat();
|
||||||
CPPUNIT_ASSERT_EQUAL(22771ul, extractedInfo.size());
|
CPPUNIT_ASSERT_EQUAL(22771_st, extractedInfo.size());
|
||||||
CPPUNIT_ASSERT(ContainerFormat::Jpeg == extractedInfo.containerFormat());
|
CPPUNIT_ASSERT(ContainerFormat::Jpeg == extractedInfo.containerFormat());
|
||||||
extractedInfo.invalidate();
|
extractedInfo.invalidate();
|
||||||
|
|
||||||
|
@ -667,7 +668,7 @@ void CliTests::testExtraction()
|
||||||
TESTUTILS_ASSERT_EXEC(args3);
|
TESTUTILS_ASSERT_EXEC(args3);
|
||||||
extractedInfo.open(true);
|
extractedInfo.open(true);
|
||||||
extractedInfo.parseContainerFormat();
|
extractedInfo.parseContainerFormat();
|
||||||
CPPUNIT_ASSERT_EQUAL(22771ul, extractedInfo.size());
|
CPPUNIT_ASSERT_EQUAL(22771_st, extractedInfo.size());
|
||||||
CPPUNIT_ASSERT(ContainerFormat::Jpeg == extractedInfo.containerFormat());
|
CPPUNIT_ASSERT(ContainerFormat::Jpeg == extractedInfo.containerFormat());
|
||||||
remove("/tmp/extracted.jpeg");
|
remove("/tmp/extracted.jpeg");
|
||||||
remove(mp4File2.data());
|
remove(mp4File2.data());
|
||||||
|
|
Loading…
Reference in New Issue