blob: dd42ea44ce85e5ce54ec3410199da1dd21a5af70 [file] [log] [blame]
// Copyright 2018 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 <errno.h>
#include <unistd.h>
#include <lib/fdio/limits.h>
#include <zxtest/zxtest.h>
TEST(OpenMaxText, Sysconf) {
int max = sysconf(_SC_OPEN_MAX);
ASSERT_EQ(max, FDIO_MAX_FD, "sysconf(_SC_OPEN_MAX) != FDIO_MAX_FD");
}