[llvm-bugs] [Bug 28914] New: Assertion failure in test_localtime_r() if timezone is not EDT
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 9 06:14:55 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28914
Bug ID: 28914
Summary: Assertion failure in test_localtime_r() if timezone is
not EDT
Product: compiler-rt
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: balarishi.bhogadi at amd.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
If the timezone of the system is not EDT, facing the below error:
custom.cc.tmp: /home/amd/llvm/projects/compiler-rt/test/dfsan/custom.cc:555:
void test_localtime_r(): Assertion `t1.tm_min == 56' failed.
<Snip from custom.cc>
void test_localtime_r() {
time_t t0 = 1384800998;
struct tm t1;
dfsan_set_label(i_label, &t0, sizeof(t0));
struct tm* ret = localtime_r(&t0, &t1);
assert(ret == &t1);
assert(t1.tm_min == 56); // <===
ASSERT_LABEL(t1.tm_mon, i_label);
}
<snip ends>
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160809/2ae029da/attachment-0001.html>
More information about the llvm-bugs
mailing list