aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/linux')
-rw-r--r--src/common/linux/elf_core_dump_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/linux/elf_core_dump_unittest.cc b/src/common/linux/elf_core_dump_unittest.cc
index 7c122aa6..4eae9680 100644
--- a/src/common/linux/elf_core_dump_unittest.cc
+++ b/src/common/linux/elf_core_dump_unittest.cc
@@ -176,6 +176,7 @@ TEST(ElfCoreDumpTest, ValidCoreFile) {
size_t num_nt_prpsinfo = 0;
size_t num_nt_prstatus = 0;
+ size_t num_pr_fpvalid = 0;
#if defined(__i386__) || defined(__x86_64__)
size_t num_nt_fpregset = 0;
#endif
@@ -207,6 +208,8 @@ TEST(ElfCoreDumpTest, ValidCoreFile) {
EXPECT_EQ(kCrashSignal, status->pr_info.si_signo);
}
++num_nt_prstatus;
+ if (status->pr_fpvalid)
+ ++num_pr_fpvalid;
break;
}
#if defined(__i386__) || defined(__x86_64__)
@@ -235,9 +238,9 @@ TEST(ElfCoreDumpTest, ValidCoreFile) {
EXPECT_EQ(1U, num_nt_prpsinfo);
EXPECT_EQ(kNumOfThreads, num_nt_prstatus);
#if defined(__i386__) || defined(__x86_64__)
- EXPECT_EQ(kNumOfThreads, num_nt_fpregset);
+ EXPECT_EQ(num_pr_fpvalid, num_nt_fpregset);
#endif
#if defined(__i386__)
- EXPECT_EQ(kNumOfThreads, num_nt_prxfpreg);
+ EXPECT_EQ(num_pr_fpvalid, num_nt_prxfpreg);
#endif
}