mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-07 02:27:47 +08:00
fixing flaky tests in mac and windows
This commit is contained in:
@@ -116,8 +116,9 @@ TEST(USemaphoreTest, AcquireTry)
|
||||
result = sem.acquireTry();
|
||||
EXPECT_TRUE(result);
|
||||
EXPECT_EQ(sem.value(), 0);
|
||||
// Semaphore is exhausted: the next non-blocking try must fail.
|
||||
result = sem.acquireTry();
|
||||
EXPECT_TRUE(result);
|
||||
EXPECT_FALSE(result);
|
||||
#else
|
||||
int result = sem.acquireTry(1);
|
||||
EXPECT_TRUE(result);
|
||||
|
||||
Reference in New Issue
Block a user