summaryrefslogtreecommitdiffstats
path: root/libc/src/errno
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2020-01-03 12:00:45 -0800
committerSiva Chandra Reddy <sivachandra@google.com>2020-01-06 10:14:43 -0800
commit5b24c088171d3bd7a8ff559c82926e5d4b04f032 (patch)
tree54ac5d666fef87a0e6337e388f6f5087c18e9ef9 /libc/src/errno
parent0239526cccf8aa708e29eeb7e49de8f6dc6c1a5f (diff)
downloadbcm5719-llvm-5b24c088171d3bd7a8ff559c82926e5d4b04f032.tar.gz
bcm5719-llvm-5b24c088171d3bd7a8ff559c82926e5d4b04f032.zip
[libc] Move all tests to a top level `test` directory.
A toplevel target, `check-libc` has also been added. Reviewers: abrachet, phosek Tags: #libc-project Differential Revision: https://reviews.llvm.org/D72177
Diffstat (limited to 'libc/src/errno')
-rw-r--r--libc/src/errno/CMakeLists.txt12
-rw-r--r--libc/src/errno/errno_test.cpp17
2 files changed, 0 insertions, 29 deletions
diff --git a/libc/src/errno/CMakeLists.txt b/libc/src/errno/CMakeLists.txt
index 32d7262044b..9f244908d70 100644
--- a/libc/src/errno/CMakeLists.txt
+++ b/libc/src/errno/CMakeLists.txt
@@ -5,15 +5,3 @@ add_entrypoint_object(
HDRS
llvmlibc_errno.h
)
-
-add_custom_target(libc_errno_unittests)
-
-add_libc_unittest(
- errno_test
- SUITE
- libc_errno_unittests
- SRCS
- errno_test.cpp
- DEPENDS
- __errno_location
-)
diff --git a/libc/src/errno/errno_test.cpp b/libc/src/errno/errno_test.cpp
deleted file mode 100644
index 1ca61d5c625..00000000000
--- a/libc/src/errno/errno_test.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-//===---------------------- 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/llvmlibc_errno.h"
-
-#include "gtest/gtest.h"
-
-TEST(ErrnoTest, Basic) {
- int test_val = 123;
- llvmlibc_errno = test_val;
- ASSERT_EQ(test_val, llvmlibc_errno);
-}
OpenPOWER on IntegriCloud