166d00febSPaula Toth //===-- Unittests for errno -----------------------------------------------===// 25b24c088SSiva Chandra Reddy // 35b24c088SSiva Chandra Reddy // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 45b24c088SSiva Chandra Reddy // See https://llvm.org/LICENSE.txt for license information. 55b24c088SSiva Chandra Reddy // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 65b24c088SSiva Chandra Reddy // 75b24c088SSiva Chandra Reddy //===----------------------------------------------------------------------===// 85b24c088SSiva Chandra Reddy 95b24c088SSiva Chandra Reddy #include "src/errno/llvmlibc_errno.h" 10c7453fadSSiva Chandra Reddy #include "utils/UnitTest/Test.h" 115b24c088SSiva Chandra Reddy TEST(LlvmLibcErrnoTest,Basic)12*1df0dbfcSMichael JonesTEST(LlvmLibcErrnoTest, Basic) { 135b24c088SSiva Chandra Reddy int test_val = 123; 145b24c088SSiva Chandra Reddy llvmlibc_errno = test_val; 155b24c088SSiva Chandra Reddy ASSERT_EQ(test_val, llvmlibc_errno); 165b24c088SSiva Chandra Reddy } 17