summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-05-03 22:35:32 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-05-03 22:35:32 +0200
commite94fdd576d250652891f3ca5be61e2eb80b152cc (patch)
treeeafd63ebdbdd5ec9e66f86de703c8c28b3996b27 /tests
parentdea61db0817432886e830b4916c375a88256ba07 (diff)
downloadlibsigrokdecode-e94fdd576d250652891f3ca5be61e2eb80b152cc.tar.gz
libsigrokdecode-e94fdd576d250652891f3ca5be61e2eb80b152cc.zip
tests/check_session.c: Use UINT64_MAX.
Diffstat (limited to 'tests')
-rw-r--r--tests/check_session.c6
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();
}