blob: bc735e90ddcc9fa0d3b5d673d0e7f5c7af0fd7b3 [file] [log] [blame]
// Copyright 2019 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 <lib/fdio/watcher.h>
#include <zxtest/zxtest.h>
TEST(WatcherTest, WatchInvalidDirFD) {
ASSERT_EQ(ZX_ERR_INVALID_ARGS, fdio_watch_directory(-1, nullptr, ZX_TIME_INFINITE, nullptr));
}