summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2018-09-30 22:10:09 +0200
committerMarton Balint <cus@passwd.hu>2018-10-07 20:26:29 +0200
commit416804fe412063887c1c9cd94d8ca4787d036f51 (patch)
treec514fdc290ed0eba285be5c713433cab26c416a0
parent4c777d52b9b1048ba92cab1a658c218c38282d25 (diff)
avutil/tests/parseutils: add some big duration tests
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavutil/tests/parseutils.c4
-rw-r--r--tests/ref/fate/parseutils4
2 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/tests/parseutils.c b/libavutil/tests/parseutils.c
index 180f624002..a1ac8d44e2 100644
--- a/libavutil/tests/parseutils.c
+++ b/libavutil/tests/parseutils.c
@@ -185,6 +185,10 @@ static void test_av_parse_time(void)
"42.1729",
"-1729.42",
"12:34",
+ "2147483648s",
+ "4294967296ms",
+ "8589934592us",
+ "9223372036854775808us",
};
av_log_set_level(AV_LOG_DEBUG);
diff --git a/tests/ref/fate/parseutils b/tests/ref/fate/parseutils
index 568b6d28be..bd36c9b01f 100644
--- a/tests/ref/fate/parseutils
+++ b/tests/ref/fate/parseutils
@@ -90,6 +90,10 @@ now -> 1331972053.200000 = 2012-03-17T08:14:13Z
42.1729 -> +42172900
-1729.42 -> -1729420000
12:34 -> +754000000
+2147483648s -> +2147483648000000
+4294967296ms -> +4294967296000
+8589934592us -> +8589934592
+9223372036854775808us -> error
Testing av_get_known_color_name()
AliceBlue -> R(240) G(248) B(255) A(0)