blob: 2f1b7a2a25e0b976aed939f45ffc3c460de7c0bd [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fcntl.h>
#include <gtest/gtest.h>
#include <sdk/lib/device-watcher/cpp/device-watcher.h>
TEST(PlatformDriverTestRealmTest, DriversExist) {
fbl::unique_fd dev(open("/dev", O_RDONLY));
ASSERT_TRUE(dev);
fbl::unique_fd out;
ASSERT_EQ(ZX_OK, device_watcher::RecursiveWaitForFile(dev, "sys/platform", &out));
}