[libcxx-commits] [libcxx] 539ce1d - [libcxx] [test] Simplify the fs helper header for posix cases. NFC.

Martin Storsjö via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 10 00:44:15 PST 2020


Author: Martin Storsjö
Date: 2020-11-10T10:39:15+02:00
New Revision: 539ce1d288765d0f452d4a2d6b7f66bae4130436

URL: https://github.com/llvm/llvm-project/commit/539ce1d288765d0f452d4a2d6b7f66bae4130436
DIFF: https://github.com/llvm/llvm-project/commit/539ce1d288765d0f452d4a2d6b7f66bae4130436.diff

LOG: [libcxx] [test] Simplify the fs helper header for posix cases. NFC.

Differential Revision: https://reviews.llvm.org/D91073

Added: 
    

Modified: 
    libcxx/test/support/filesystem_test_helper.h

Removed: 
    


################################################################################
diff  --git a/libcxx/test/support/filesystem_test_helper.h b/libcxx/test/support/filesystem_test_helper.h
index 8ce4c3e939d5..840c6aa3ce51 100644
--- a/libcxx/test/support/filesystem_test_helper.h
+++ b/libcxx/test/support/filesystem_test_helper.h
@@ -72,12 +72,8 @@ namespace utils {
     using ::ftruncate;
     inline int symlink(const char* oldname, const char* newname, bool is_dir) { (void)is_dir; return ::symlink(oldname, newname); }
     using ::link;
-    inline int setenv(const char *var, const char *val, int overwrite) {
-        return ::setenv(var, val, overwrite);
-    }
-    inline int unsetenv(const char *var) {
-        return ::unsetenv(var);
-    }
+    using ::setenv;
+    using ::unsetenv;
     inline bool space(std::string path, std::uintmax_t &capacity,
                       std::uintmax_t &free, std::uintmax_t &avail) {
         struct statvfs expect;


        


More information about the libcxx-commits mailing list