23 lines
1.1 KiB
C++
23 lines
1.1 KiB
C++
$NetBSD$
|
|
|
|
--- base/threading/platform_thread_unittest.cc.orig 2020-06-25 09:31:18.000000000 +0000
|
|
+++ base/threading/platform_thread_unittest.cc
|
|
@@ -302,7 +302,7 @@ TEST(PlatformThreadTest,
|
|
// and hardcodes what we know. Please inform scheduler-dev@chromium.org if this
|
|
// proprerty changes for a given platform.
|
|
TEST(PlatformThreadTest, CanIncreaseThreadPriority) {
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_BSD)
|
|
// On Ubuntu, RLIMIT_NICE and RLIMIT_RTPRIO are 0 by default, so we won't be
|
|
// able to increase priority to any level.
|
|
constexpr bool kCanIncreasePriority = false;
|
|
@@ -398,7 +398,7 @@ TEST(PlatformThreadTest, SetHugeThreadNa
|
|
TEST(PlatformThreadTest, GetDefaultThreadStackSize) {
|
|
size_t stack_size = PlatformThread::GetDefaultThreadStackSize();
|
|
#if defined(OS_WIN) || defined(OS_IOS) || defined(OS_FUCHSIA) || \
|
|
- (defined(OS_LINUX) && !defined(THREAD_SANITIZER)) || \
|
|
+ ((defined(OS_LINUX) || defined(OS_BSD)) && !defined(THREAD_SANITIZER)) || \
|
|
(defined(OS_ANDROID) && !defined(ADDRESS_SANITIZER))
|
|
EXPECT_EQ(0u, stack_size);
|
|
#else
|