fmq_unit_tests: Write a log msg before tracking open FDs
We open a socket and a pstore file when we log. Make sure that happens
before we start looking for leaked FDs in case this test case is run by
itself.
Test: atest fmq_unit_tests
Bug: none
Change-Id: I528b2fb2b40b5fe4859f4057af91396c538ee97d
diff --git a/tests/fmq_unit_tests.cpp b/tests/fmq_unit_tests.cpp
index 8ef1d27..ee04670 100644
--- a/tests/fmq_unit_tests.cpp
+++ b/tests/fmq_unit_tests.cpp
@@ -381,6 +381,8 @@
}
TEST_F(AidlOnlyBadQueueConfig, LookForLeakedFds) {
+ // Write a log msg first to open the pmsg FD and socket to logd.
+ LOG(INFO) << "Nothin' to see here...";
// create/destroy a large number of queues that if we were leaking FDs
// we could detect it by looking at the number of FDs opened by the this
// test process.