summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-09-24 21:11:32 +0100
committerTim-Philipp Müller <tim@centricular.com>2016-09-25 22:20:27 +0100
commitd9da603db6e4656ce9f1fd3007987d4a62eece5c (patch)
tree9a0fdc38f488bc14d0800af0395ff2cdb5eccb2c /tests
parent7c0ec13942bc59f6da75e432f6d3429b2dd5d9c1 (diff)
tests: videotimecode: fix floating point comparisons
Comparing floats for equality is not necessarily going to work reliably, so use fail_unless_equals_float() for this. Test would fail on x86 (Intel Atom x5-Z8300).
Diffstat (limited to 'tests')
-rw-r--r--tests/check/libs/videotimecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/check/libs/videotimecode.c b/tests/check/libs/videotimecode.c
index c403db8df..23d6b5024 100644
--- a/tests/check/libs/videotimecode.c
+++ b/tests/check/libs/videotimecode.c
@@ -332,7 +332,7 @@ GST_START_TEST (videotimecode_dailyjam_todatetime)
fail_unless (g_date_time_get_day_of_month (dt2) == 29);
fail_unless (g_date_time_get_hour (dt2) == 11);
fail_unless (g_date_time_get_minute (dt2) == 36);
- fail_unless (g_date_time_get_seconds (dt2) == 53.04);
+ fail_unless_equals_float (g_date_time_get_seconds (dt2), 53.04);
gst_video_time_code_free (tc1);
g_date_time_unref (dt2);