summaryrefslogtreecommitdiff
path: root/libc/test/src/errno/errno_test.cpp
blob: 33185c2bcf6f54957ecd57d35aafff424d00b458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//===-- Unittests for errno -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "src/errno/libc_errno.h"
#include "test/UnitTest/Test.h"

TEST(LlvmLibcErrnoTest, Basic) {
  int test_val = 123;
  libc_errno = test_val;
  ASSERT_EQ(test_val, libc_errno);
}