[libc-commits] [PATCH] D144146: [libc] Support running tests for Pigweed

Alex Brachet via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Feb 16 08:39:27 PST 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd9a04d1d5453: [libc] Support running tests for Pigweed (authored by abrachet).
Herald added a project: libc-project.

Changed prior to commit:
  https://reviews.llvm.org/D144146?vs=497839&id=498039#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144146/new/

https://reviews.llvm.org/D144146

Files:
  libc/test/UnitTest/PigweedTest.h
  libc/test/UnitTest/Test.h


Index: libc/test/UnitTest/Test.h
===================================================================
--- libc/test/UnitTest/Test.h
+++ libc/test/UnitTest/Test.h
@@ -11,6 +11,8 @@
 
 #ifdef LIBC_COPT_TEST_USE_FUCHSIA
 #include "FuchsiaTest.h"
+#elif defined(LIBC_COPT_TEST_USE_PIGWEED)
+#include "PigweedTest.h"
 #else
 #include "LibcTest.h"
 #endif
Index: libc/test/UnitTest/PigweedTest.h
===================================================================
--- libc/test/UnitTest/PigweedTest.h
+++ libc/test/UnitTest/PigweedTest.h
@@ -1,4 +1,4 @@
-//===-- Header selector for libc unittests ----------------------*- C++ -*-===//
+//===-- Header for setting up the Pigweed tests -----------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -6,13 +6,13 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_LIBC_UTILS_UNITTEST_TEST_H
-#define LLVM_LIBC_UTILS_UNITTEST_TEST_H
+#ifndef LLVM_LIBC_UTILS_UNITTEST_PIGWEEDTEST_H
+#define LLVM_LIBC_UTILS_UNITTEST_PIGWEEDTEST_H
 
-#ifdef LIBC_COPT_TEST_USE_FUCHSIA
-#include "FuchsiaTest.h"
-#else
-#include "LibcTest.h"
-#endif
+#include <gtest/gtest.h>
 
-#endif // LLVM_LIBC_UTILS_UNITTEST_TEST_H
+namespace __llvm_libc::testing {
+using Test = ::testing::Test;
+}
+
+#endif // LLVM_LIBC_UTILS_UNITTEST_PIGWEEDTEST_H


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144146.498039.patch
Type: text/x-patch
Size: 1435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230216/2a778dd3/attachment.bin>


More information about the libc-commits mailing list