diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2024-02-28 16:49:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-28 16:49:26 +0100 |
| commit | 1b72e85dc9a2b55c9142a74fb5b93338d59f92f0 (patch) | |
| tree | aeeef83ddd4d13eb8d7fffb693bcb0912b9dc0e3 /tests | |
| parent | 7a2773d3bab5c078d19edc7326957e95202a593c (diff) | |
| parent | 20ad29f497cf1afacb243c0019069ba10a0320bd (diff) | |
Merge pull request #1517 from stweil/typos
Fix some typos (found by `codespell` and `typos`)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/compare_images.c | 2 | ||||
| -rw-r--r-- | tests/nonregression/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | tests/nonregression/test_suite.ctest.in | 2 | ||||
| -rw-r--r-- | tests/pdf2jp2.c | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/compare_images.c b/tests/compare_images.c index f3f87639..9b55e054 100644 --- a/tests/compare_images.c +++ b/tests/compare_images.c @@ -939,7 +939,7 @@ int main(int argc, char **argv) if ( imageToPNG(imageDiff, filenamePNGdiff_it_comp, it_comp) == EXIT_SUCCESS ) { - printf("<DartMeasurementFile name=\"DiffferenceImage_%d\" type=\"image/png\"> %s </DartMeasurementFile> \n", it_comp, filenamePNGdiff_it_comp); + printf("<DartMeasurementFile name=\"DifferenceImage_%d\" type=\"image/png\"> %s </DartMeasurementFile> \n", it_comp, filenamePNGdiff_it_comp); } */ diff --git a/tests/nonregression/CMakeLists.txt b/tests/nonregression/CMakeLists.txt index 51990577..c3b9578f 100644 --- a/tests/nonregression/CMakeLists.txt +++ b/tests/nonregression/CMakeLists.txt @@ -82,8 +82,8 @@ set(BLACKLIST_JPEG2000 issue475.jp2 #kdu_jp2info ok issue413.jp2 #kdu_jp2info ok issue823.jp2 #kdu_jp2info ok - issue826.jp2 #inspection reveales that the transformation value is out of range - oss-fuzz2785.jp2 #inspection reveales that the transformation value is out of range + issue826.jp2 #inspection reveals that the transformation value is out of range + oss-fuzz2785.jp2 #inspection reveals that the transformation value is out of range issue1438.j2k ) diff --git a/tests/nonregression/test_suite.ctest.in b/tests/nonregression/test_suite.ctest.in index 584dfaf7..67409f9b 100644 --- a/tests/nonregression/test_suite.ctest.in +++ b/tests/nonregression/test_suite.ctest.in @@ -6,7 +6,7 @@ # + For encoder related tests = dump, compare dump to base, decode the encoded file with # reference and compare the decoded file with the baseline decoded previously with # ref decoder. -# + For decoder related tests = dump, compare dump to base, (TODO: compare outpout decoding +# + For decoder related tests = dump, compare dump to base, (TODO: compare output decoding # image to base) # # Line begin with ! should failed (should be used for bad jpeg2000 file which should be diff --git a/tests/pdf2jp2.c b/tests/pdf2jp2.c index 38aa739f..f36ea4f9 100644 --- a/tests/pdf2jp2.c +++ b/tests/pdf2jp2.c @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) { #define NUMJP2 32 int i, c = 0; - long offets[NUMJP2]; + long offsets[NUMJP2]; char buffer[512]; #define BUFLEN 4096 int cont = 1; @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) const ptrdiff_t diff = ret - haystack; assert( diff >= 0 ); /*fprintf( stdout, "Found it: %lx\n", (ptrdiff_t)cpos - (ptrdiff_t)hlen + diff);*/ - offets[c++] = (ptrdiff_t)cpos - (ptrdiff_t)hlen + diff; + offsets[c++] = (ptrdiff_t)cpos - (ptrdiff_t)hlen + diff; } cont = (nread == flen); memcpy( haystack, haystack + nread, nlen ); @@ -97,7 +97,7 @@ int main(int argc, char *argv[]) { int s, len = 0; char *r; - const int ret = fseek(f, offets[i], SEEK_SET); + const int ret = fseek(f, offsets[i], SEEK_SET); assert( ret == 0 ); r = fgets(buffer, sizeof(buffer), f); assert( r ); @@ -105,7 +105,7 @@ int main(int argc, char *argv[]) s = sscanf(r, "JPXDecode]/Length %d/Width %*d/BitsPerComponent %*d/Height %*d", &len); if( s == 0 ) { // try again harder - const int ret = fseek(f, offets[i] - 40, SEEK_SET); // 40 is magic number + const int ret = fseek(f, offsets[i] - 40, SEEK_SET); // 40 is magic number assert( ret == 0 ); r = fgets(buffer, sizeof(buffer), f); assert( r ); |
