diff options
author | Marti Maria <info@littlecms.com> | 2012-02-20 11:46:23 +0100 |
---|---|---|
committer | Marti Maria <info@littlecms.com> | 2012-02-20 11:46:23 +0100 |
commit | e47bbcb41fff93a3737e0b41914541d0af815173 (patch) | |
tree | b3d442cc48eaf2793e93e0ef86f25ef17402ca32 /testbed | |
parent | c00a6900f86ea8610a5a16a5118ac7fc7f68c2c9 (diff) | |
download | lcms2-e47bbcb41fff93a3737e0b41914541d0af815173.tar.gz |
Cleanup on CGATS parser to avoid deprecated functions
Diffstat (limited to 'testbed')
-rw-r--r-- | testbed/testcms2.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/testbed/testcms2.c b/testbed/testcms2.c index f070b09..d928aee 100644 --- a/testbed/testcms2.c +++ b/testbed/testcms2.c @@ -6500,6 +6500,20 @@ cmsInt32Number CheckCGATS(void) return 0; } + + cmsIT8SetPropertyDbl(it8, "DBL_PROP", 123E+12); + if ((cmsIT8GetPropertyDbl(it8, "DBL_PROP") - 123E+12) > 1 ) { + + return 0; + } + + cmsIT8SetPropertyDbl(it8, "DBL_PROP_NEG", 123E-45); + if ((cmsIT8GetPropertyDbl(it8, "DBL_PROP_NEG") - 123E-45) > 1E-45 ) { + + return 0; + } + + cmsIT8Free(it8); remove("TEST.IT8"); @@ -7568,6 +7582,8 @@ int main(int argc, char* argv[]) { cmsInt32Number Exhaustive = 0; cmsInt32Number DoSpeedTests = 1; + cmsInt32Number DoCheckTests = 1; + #ifdef _MSC_VER @@ -7597,9 +7613,13 @@ int main(int argc, char* argv[]) PrintSupportedIntents(); + + // Create utility profiles - Check("Creation of test profiles", CreateTestProfiles); + Check("Creation of test profiles", CreateTestProfiles); + if (DoCheckTests) + { Check("Base types", CheckBaseTypes); Check("endianess", CheckEndianess); Check("quick floor", CheckQuickFloor); @@ -7769,6 +7789,7 @@ int main(int argc, char* argv[]) Check("PostScript generator", CheckPostScript); Check("Segment maxima GBD", CheckGBD); Check("MD5 digest", CheckMD5); + } if (DoSpeedTests) |