Commit Graph

5496 Commits

Author SHA1 Message Date
Dan Čermák
bc58752d18 Remove useless casts
This commit removes only casts where type A is cast to the exactly same
type (and not to a platform dependent typedefs)
2018-05-16 10:15:53 +02:00
Dan Čermák
9583e447b2 [travis] Run apt-get update before installing packages 2018-05-16 08:32:05 +02:00
Dan Čermák
bb2019149a [safe_op] Don't use overflow intrinsics in MSVC 2005 2018-05-08 21:52:52 +02:00
Fredrik lingvall
5aed467f42 Clarified the workflow description (after input from piponazo). 2018-05-08 07:22:57 +02:00
Fredrik lingvall
2665549327 Corrected the order of git commands for a PR in the code contribution workflow description. 2018-05-08 07:22:57 +02:00
Luis Díaz Más
e32323d7c7 Simplify usage of strerror_r.
- Define STRERROR_R_CHAR_P properly on CMake and use it on futils.cpp
- We use now _GNU_SOURCE to determine which version of strerror_r to use
- strError only throws if ret==ERANGE
- Remove STRERROR_R_CHAR_P. It has been never used
- sort defines in config.h.cmake
- Remove EXV_HAVE_DECL_STRERROR_R that is not used anymore
- Remove EXV_HAVE_STRERROR. C++98 always will have it
2018-05-07 10:25:26 +02:00
D4N
b8b73fdcf6
Merge pull request #295 from Exiv2/Redmine1348
patch: add Tamron SP AF 150-600mm F/5-6.3 VC USD G2 (A022) for Nikon
2018-05-07 09:17:21 +02:00
Robin Mills
4239ff6734 Test for Tamron SP AF 150-600mm F/5-6.3 VC USD G2 (A022) for Nikon 2018-05-06 12:00:20 +01:00
Robin Mills
d22fff4834 Lens Recognition for Tamron SP AF 150-600mm F/5-6.3 VC USD G2 (A022) for Nikon
http://dev.exiv2.org/issues/1348
2018-05-06 11:58:22 +01:00
Luis Díaz Más
f86542e5f6 Remove EXV_HAVE_STRTOL 2018-05-04 11:20:43 +02:00
Luis Díaz Más
d55b2b1b65 Remove HAVE_STDLIB_H check and replace stdlib.h by cstdlib 2018-05-04 11:20:43 +02:00
Luis Díaz Más
aded1965c5 Remove EXV_HAVE_MEMSET 2018-05-04 11:20:43 +02:00
Luis Díaz Más
abd28a6a9e Remove EXV_HAVE_STRCHR 2018-05-04 11:20:43 +02:00
D4N
4bcec183d5
Merge pull request #286 from D4N/yet_another_testsuite_update
Yet another testsuite update
2018-04-25 10:40:16 +02:00
Dan Čermák
b364e075c6 [testsuite] Implement DeleteFiles decorator
- Refactor FileDecoratorBase to use an arbitrary property in the decorated
  class where the list of files is saved
- Add DeleteFiles decorator which deletes all files passed to it after the test
  finished
2018-04-25 09:41:50 +02:00
Dan Čermák
d1714f6564 [testsuite] Fix typo and obsolete syntax 2018-04-25 09:35:42 +02:00
Dan Čermák
fe98936375 [testsuite] Fixed infinite iteration in CaseMeta.__new__
The loop condition in the variable expansion loop was faulty and caused an
infinite loop when no change occured (i.e. no variables were expanded)
2018-04-25 09:35:42 +02:00
D4N
368771f3fd
Merge pull request #285 from D4N/ub_memleak_fixes
Fix some undefined behavior and memory leaks
2018-04-25 09:27:39 +02:00
Dan Čermák
b1a31352b6 Add default constructor for XmpData 2018-04-25 00:13:51 +02:00
Dan Čermák
fc60d97a29 Prevent passing of null-pointers to libc functions 2018-04-25 00:13:41 +02:00
Dan Čermák
2bf89f4854 Store pointers to Impl classes in auto_ptr
Pimpl class Impl is stored in raw pointers which are allocated on the heap in
the constructor. However, the constructor can throw an exception resulting in a
memory leak as the destructor is **not** invoked.
=> A smart pointer is however properly deallocated.
2018-04-25 00:13:26 +02:00
D4N
c922aa7b46
Merge pull request #282 from D4N/testsuite_update
Testsuite update
2018-04-23 12:41:08 +02:00
Dan Čermák
740e4ecad1 [testsuite] Improve output in case of errors
use the msg= option of unittest.assertXyz() to improve the error
reporting
2018-04-23 10:47:52 +02:00
Dan Čermák
b6d93558ee [testsuite] Added option to use different encodings for the output 2018-04-23 10:23:50 +02:00
Dan Čermák
dd3bcaf41f [testsuite] Added check that test list have same length
commands, retval, stdout & stderr are lists
if they don't have the same length, they are truncated to the smallest list
thereby silently dropping test cases
=> now a ValueError is raised preventing that
2018-04-23 10:17:36 +02:00
Dan Čermák
11cd1eabf8 [testsuite] Addapt tests to new test suite structure 2018-04-23 10:17:36 +02:00
Dan Čermák
c40c90141f [testsuite] Add debug mode & search directory to runner 2018-04-23 10:17:36 +02:00
Dan Čermák
4656af73bc [testsuite] Fix variable names in suite config
The variables contained a minus which must not be used in template string
variables.
=> Use underscores instead
2018-04-23 10:17:36 +02:00
Dan Čermák
cac0bc9656 [testsuite] Adapt documentation to recent changes
- change from {var} => $var
- use metaclass instead of direct inheritance
2018-04-23 10:17:17 +02:00
Dan Čermák
bd9d085141 [testsuite] Refactor test suite to use metaclasses & template module
The testsuite now uses python's template module for string substitutions which
allows for a more natural substitution syntax known from the shell. Also, it
allows to run the substitutions multiple times, which is not possible with
string.format().
The heavy-lifting is now performed via a metaclass, which expands all variables
on the class creation.
2018-04-21 00:59:59 +02:00
Luis Díaz Más
02aa13abf3 Install conan-dependencies DLLs into install/bin.
We also changed the way in which we copy the DLLs to the bin folder inside the build directory.
Before we were directly placing the conan-deps DLLs into the bin folder directly. Now we place
them into a directory called conanDlls, and from there we copy them to bin or install/bin
at build and install steps respectively.
2018-04-19 17:19:47 +02:00
Luis Díaz Más
c80b1b9d51 New documentation about how to use Conan 2018-04-11 21:59:54 +02:00
Luis Díaz Más
a923b067b5 Minor updates in README.md 2018-04-11 21:59:54 +02:00
Luis Díaz Más
fbd8e2669e sort alphabetically the sources in src/CMakelists.txt 2018-04-09 23:04:35 +02:00
Luis Díaz Más
de5b9ebf89 Remove duplication of sources in src/CMakeLists.txt 2018-04-09 23:04:35 +02:00
Luis Díaz Más
5a6e66fd5b Update RADME-CMAKE.
- Some notes about how to pass -DDEBUG via CMake.
- Update comments about conan.
- Some other minor modifications.
2018-04-09 18:53:00 +02:00
Luis Díaz Más
71ecc44a5e Remove from -DDEBUG from Debug builds in Mac and Linux 2018-04-09 18:53:00 +02:00
Luis Díaz Más
ffbcaa2e6d Fix MSVC warning C4267: conversion from 'size_t' to 'long' 2018-04-09 15:54:27 +02:00
Luis Díaz Más
794fea2639 Replaced way to check buffer after calling DateValue::copy 2018-04-08 10:10:12 +02:00
Luis Díaz Más
bd40c18f1c Use variable in TimeValue::copy to remove -Wunused-variable warning 2018-04-08 10:10:12 +02:00
Luis Diaz Mas
a246c73d6f Use unused variable instead of hard-coded values in DateValue::copy 2018-04-08 10:10:12 +02:00
Luis Diaz Mas
bf0b7affaa Add few basic unit tests for DateValue
I feel more confortable doing changes in a code that I do not know by
having some unit tests around it. These characterisation tests will
also be useful as documentation.
2018-04-08 10:10:12 +02:00
Mario Emmenlauer
548d7688c7 samples/geotag.cpp: fixed debugging code to be in the correct ifdef 2018-04-08 07:45:48 +02:00
Luis Díaz Más
bf7047a71b clang-format XmpKey code 2018-04-07 20:04:22 +02:00
Luis Díaz Más
b545605d25 Add characterisation tests for XmpKey 2018-04-07 20:04:22 +02:00
Luis Díaz Más
336b759cc0 Remove 'using namespace' from public header 2018-04-06 09:23:58 +02:00
Luis Díaz Más
28ca8aa529 Fix Appveyor builds by disabling the search of Iconv on Windows
Note that Iconv has not been used on AppVeyor until now.
2018-04-06 09:05:01 +02:00
Fredrik Lingvall
db5bb66d06 CONTRUBUTING.md updates (#234)
* Restructured the file: added TOC, new sections: lens data and bug reports, and removed coding guidelines.

* Added a CODING_GUIDELINES.md file (which previously was a part of the CONTRIBUTING.md file).
2018-04-04 09:55:03 +02:00
Luis Diaz Mas
07d75cd0e8 Check if ExifData::findKey return valid iterators 2018-04-02 17:46:29 +02:00
Luis Diaz Mas
ffab622633 Add reproducer for #247 2018-04-02 17:46:29 +02:00