diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-29 22:01:09 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-12-05 20:05:44 +0100 |
commit | d086c1203c062c35911c240d55b8c0b06fe9b64f (patch) | |
tree | 83ce406f28148c744dbdf3b879094201fcdd9feb /libavutil | |
parent | 840ecc9e075a0268884141eb25e4f2dc3f35d9dc (diff) | |
download | ffmpeg-d086c1203c062c35911c240d55b8c0b06fe9b64f.tar.gz |
Add coverage exclusions for test code.
For some of the code e.g. doing timing measurements there is no
real point in running regression testing on it, thus it should
not be counted against coverage.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/adler32.c | 2 | ||||
-rw-r--r-- | libavutil/aes.c | 2 | ||||
-rw-r--r-- | libavutil/base64.c | 2 | ||||
-rw-r--r-- | libavutil/des.c | 2 | ||||
-rw-r--r-- | libavutil/eval.c | 4 |
5 files changed, 12 insertions, 0 deletions
diff --git a/libavutil/adler32.c b/libavutil/adler32.c index 9d3d896506..8ea5fc2958 100644 --- a/libavutil/adler32.c +++ b/libavutil/adler32.c @@ -56,6 +56,7 @@ unsigned long av_adler32_update(unsigned long adler, const uint8_t * buf, } #ifdef TEST +// LCOV_EXCL_START #include <string.h> #include "log.h" #include "timer.h" @@ -84,4 +85,5 @@ int main(int argc, char **argv) av_log(NULL, AV_LOG_DEBUG, "%X (expected 50E6E508)\n", checksum); return checksum == 0x50e6e508 ? 0 : 1; } +// LCOV_EXCL_STOP #endif diff --git a/libavutil/aes.c b/libavutil/aes.c index af55261864..46b290ccc4 100644 --- a/libavutil/aes.c +++ b/libavutil/aes.c @@ -259,6 +259,7 @@ int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt) } #ifdef TEST +// LCOV_EXCL_START #include <string.h> #include "lfg.h" #include "log.h" @@ -331,4 +332,5 @@ int main(int argc, char **argv) } return err; } +// LCOV_EXCL_STOP #endif diff --git a/libavutil/base64.c b/libavutil/base64.c index 1b70fa9f33..4ccc12e76e 100644 --- a/libavutil/base64.c +++ b/libavutil/base64.c @@ -100,6 +100,7 @@ char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size) } #ifdef TEST +// LCOV_EXCL_START #undef printf @@ -161,4 +162,5 @@ int main(void) return error_count; } +// LCOV_EXCL_STOP #endif diff --git a/libavutil/des.c b/libavutil/des.c index b876dccd53..e1c0ebcbfb 100644 --- a/libavutil/des.c +++ b/libavutil/des.c @@ -337,6 +337,7 @@ void av_des_mac(AVDES *d, uint8_t *dst, const uint8_t *src, int count) { } #ifdef TEST +// LCOV_EXCL_START #undef printf #undef rand #undef srand @@ -443,4 +444,5 @@ int main(void) { #endif return 0; } +// LCOV_EXCL_STOP #endif diff --git a/libavutil/eval.c b/libavutil/eval.c index 3a8b60d505..1b8176c505 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -579,6 +579,7 @@ int av_expr_parse_and_eval(double *d, const char *s, } #if FF_API_OLD_EVAL_NAMES +// LCOV_EXCL_START int av_parse_expr(AVExpr **expr, const char *s, const char * const *const_names, const char * const *func1_names, double (* const *funcs1)(void *, double), @@ -608,9 +609,11 @@ void av_free_expr(AVExpr *e) { av_expr_free(e); } +// LCOV_EXCL_STOP #endif /* FF_API_OLD_EVAL_NAMES */ #ifdef TEST +// LCOV_EXCL_START #undef printf #include <string.h> @@ -723,4 +726,5 @@ int main(int argc, char **argv) return 0; } +// LCOV_EXCL_STOP #endif |