projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: consumerd: crash occurs when taking snapshot of ust channel
[lttng-tools.git]
/
tests
/
unit
/
test_utils_parse_size_suffix.c
diff --git
a/tests/unit/test_utils_parse_size_suffix.c
b/tests/unit/test_utils_parse_size_suffix.c
index 2d3bbfc450e3f37676bd8bcd018c0de32623fdaf..14438ad32365910129e4a7d7a8609a21352f753a 100644
(file)
--- a/
tests/unit/test_utils_parse_size_suffix.c
+++ b/
tests/unit/test_utils_parse_size_suffix.c
@@
-21,7
+21,7
@@
#include <tap/tap.h>
#include <tap/tap.h>
-#include <
src/
common/utils.h>
+#include <common/utils.h>
/* For error.h */
int lttng_opt_quiet = 1;
/* For error.h */
int lttng_opt_quiet = 1;
@@
-43,7
+43,7
@@
static struct valid_test_input valid_tests_inputs[] = {
{ "128K", 131072 },
{ "0x1234k", 4771840 },
{ "32M", 33554432 },
{ "128K", 131072 },
{ "0x1234k", 4771840 },
{ "32M", 33554432 },
- { "1024G", 1099511627776 },
+ { "1024G", 1099511627776
ULL
},
{ "0X400", 1024 },
{ "0x40a", 1034 },
{ "0X40b", 1035 },
{ "0X400", 1024 },
{ "0x40a", 1034 },
{ "0X40b", 1035 },
@@
-66,15
+66,15
@@
static struct valid_test_input valid_tests_inputs[] = {
{ "0X0K", 0 },
{ "0x0M", 0 },
{ "0X0G", 0 },
{ "0X0K", 0 },
{ "0x0M", 0 },
{ "0X0G", 0 },
- { "0X40G", 68719476736 },
+ { "0X40G", 68719476736
ULL
},
{ "0300k", 196608 },
{ "0300K", 196608 },
{ "030M", 25165824 },
{ "0300k", 196608 },
{ "0300K", 196608 },
{ "030M", 25165824 },
- { "020G", 17179869184 },
+ { "020G", 17179869184
ULL
},
{ "0xa0k", 163840 },
{ "0xa0K", 163840 },
{ "0XA0M", 167772160 },
{ "0xa0k", 163840 },
{ "0xa0K", 163840 },
{ "0XA0M", 167772160 },
- { "0xA0G", 171798691840 },
+ { "0xA0G", 171798691840
ULL
},
};
static const int num_valid_tests = sizeof(valid_tests_inputs) / sizeof(valid_tests_inputs[0]);
};
static const int num_valid_tests = sizeof(valid_tests_inputs) / sizeof(valid_tests_inputs[0]);
This page took
0.023577 seconds
and
4
git commands to generate.