mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-30 22:14:21 +01:00
minidump_dump test is timezone-dependent (#15). r=bryner
- Use gmtime (UTC) instead of localtime for human-readable presentation of (MDRawHeader).time_date_stamp. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@15 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
7f686d1953
commit
8d2f465c8a
@ -1860,7 +1860,7 @@ void Minidump::Print() {
|
|||||||
printf(" stream_count = %d\n", header_.stream_count);
|
printf(" stream_count = %d\n", header_.stream_count);
|
||||||
printf(" stream_directory_rva = 0x%x\n", header_.stream_directory_rva);
|
printf(" stream_directory_rva = 0x%x\n", header_.stream_directory_rva);
|
||||||
printf(" checksum = 0x%x\n", header_.checksum);
|
printf(" checksum = 0x%x\n", header_.checksum);
|
||||||
struct tm* timestruct = localtime((time_t*)&header_.time_date_stamp);
|
struct tm* timestruct = gmtime((time_t*)&header_.time_date_stamp);
|
||||||
char timestr[20];
|
char timestr[20];
|
||||||
strftime(timestr, 20, "%Y-%m-%d %H:%M:%S", timestruct);
|
strftime(timestr, 20, "%Y-%m-%d %H:%M:%S", timestruct);
|
||||||
printf(" time_date_stamp = 0x%x %s\n", header_.time_date_stamp,
|
printf(" time_date_stamp = 0x%x %s\n", header_.time_date_stamp,
|
||||||
|
2
src/processor/testdata/minidump1.out
vendored
2
src/processor/testdata/minidump1.out
vendored
@ -4,7 +4,7 @@ MDRawHeader
|
|||||||
stream_count = 8
|
stream_count = 8
|
||||||
stream_directory_rva = 0x20
|
stream_directory_rva = 0x20
|
||||||
checksum = 0x0
|
checksum = 0x0
|
||||||
time_date_stamp = 0x44172f15 2006-03-14 16:01:09
|
time_date_stamp = 0x44172f15 2006-03-14 21:01:09
|
||||||
flags = 0x0
|
flags = 0x0
|
||||||
mDirectory[0]
|
mDirectory[0]
|
||||||
MDRawDirectory
|
MDRawDirectory
|
||||||
|
Loading…
Reference in New Issue
Block a user