[libc-commits] [PATCH] D72743: [libc] Replace the use of gtest with a new light weight unittest framework.
Alex Brachet via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Jan 17 07:55:51 PST 2020
abrachet accepted this revision.
abrachet added inline comments.
This revision is now accepted and ready to land.
================
Comment at: libc/test/config/linux/x86_64/syscall_test.cpp:12
#include <functional>
----------------
Should we get rid of this include too? Maybe just assign to function pointer? Or we could implement `std::is_same`?
================
Comment at: libc/test/src/string/strcat_test.cpp:35
ASSERT_EQ(dest, result);
- ASSERT_EQ(std::string(dest), std::string("xyz") + abc);
- ASSERT_EQ(std::string(dest).size(), abc.size() + 3);
+ ASSERT_STREQ(dest, result);
+ ASSERT_STREQ(dest, "xyzabc");
----------------
I guess we don't really need these STREQ anymore.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72743/new/
https://reviews.llvm.org/D72743
More information about the libc-commits
mailing list