diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-05-03 22:35:32 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-05-03 22:35:32 +0200 |
commit | e94fdd576d250652891f3ca5be61e2eb80b152cc (patch) | |
tree | eafd63ebdbdd5ec9e66f86de703c8c28b3996b27 /tests | |
parent | dea61db0817432886e830b4916c375a88256ba07 (diff) | |
download | libsigrokdecode-e94fdd576d250652891f3ca5be61e2eb80b152cc.tar.gz libsigrokdecode-e94fdd576d250652891f3ca5be61e2eb80b152cc.zip |
tests/check_session.c: Use UINT64_MAX.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check_session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/check_session.c b/tests/check_session.c index 8a34f32..f411854 100644 --- a/tests/check_session.c +++ b/tests/check_session.c @@ -20,6 +20,7 @@ #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include "../libsigrokdecode-internal.h" +#include <stdint.h> #include <stdlib.h> #include <check.h> #include "lib.h" @@ -193,11 +194,10 @@ START_TEST(test_session_metadata_set) srd_init(NULL); srd_session_new(&sess); /* Try a bunch of values. */ - for (i = 0; i < 1000; i++) { + for (i = 0; i < 1000; i++) conf_check_ok(sess, SRD_CONF_SAMPLERATE, i); - } /* Try the max. possible value. */ - conf_check_ok(sess, SRD_CONF_SAMPLERATE, 18446744073709551615ULL); + conf_check_ok(sess, SRD_CONF_SAMPLERATE, UINT64_MAX); srd_session_destroy(sess); srd_exit(); } |