Skip to contentSkip to conversation

Fix test: ctf writer has too large offset_s

PATCH Jérémie Galarneau 1 participant 1 message Aug 10, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

This was fixed as part of a pull request [1] which was merged yesterday.

Thanks!
Jérémie

[1] https://github.com/efficios/babeltrace/pull/75

Quoted 23 lines · Michael Jeanson

The offset_s values multiplied by 1000000000 overflows 64-bit.

---
 tests/lib/test_ctf_writer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/lib/test_ctf_writer.c +1 -2
index d3c7a96..ccd8a24 100644
@@ -2830,7 +2830,7 @@ int main(int argc, char **argv)
        const char *returned_clock_name;
        const char *returned_clock_description;
        const uint64_t frequency = 1123456789;
-       const int64_t offset_s = 1351530929945824323;
+       const int64_t offset_s = 13515309;
        const int64_t offset = 1234567;
        int64_t get_offset_s,
                get_offset;
--

2.7.4

Signature · 7 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev