blob: 7d5b92c1ba64125bad3a0afeea2d7d3448dd4d03 [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 <lib/fdio/limits.h>
#include <unistd.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");
}