File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
lldb/unittests/Host/posix Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,12 @@ TEST_F(HostTest, GetProcessInfoSetsPriority) {
117117 ASSERT_FALSE (Info.IsZombie ().value ());
118118
119119 const llvm::VersionTuple host_version = HostInfo::GetOSVersion ();
120- if (!host_version.empty ()) {
121- if (host_version >= llvm::VersionTuple (4 , 15 , 0 )) {
122- ASSERT_TRUE (Info.IsCoreDumping ().has_value ());
123- ASSERT_FALSE (Info.IsCoreDumping ().value ());
124- } else {
125- ASSERT_FALSE (Info.IsCoreDumping ().has_value ());
126- }
120+ ASSERT_TRUE (host_version);
121+ if (host_version >= llvm::VersionTuple (4 , 15 , 0 )) {
122+ ASSERT_TRUE (Info.IsCoreDumping ().has_value ());
123+ ASSERT_FALSE (Info.IsCoreDumping ().value ());
124+ } else {
125+ ASSERT_FALSE (Info.IsCoreDumping ().has_value ());
127126 }
128127}
129128#endif
You can’t perform that action at this time.
0 commit comments