[libc-commits] [libc] a5cb6ed - [libc] Revert: Temporary disable environment tests for PATH variable.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Sun Jun 19 14:40:52 PDT 2022


Author: Siva Chandra Reddy
Date: 2022-06-19T21:39:10Z
New Revision: a5cb6edb475bd41a3e3ced3fa9323096535c2da9

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

LOG: [libc] Revert: Temporary disable environment tests for PATH variable.

This reverts commit 2846c2bb4fa4e50b2eb4ff4231825d73840c8c1c. The reason
for the disable is not relevant anymore.

Added: 
    

Modified: 
    libc/test/integration/src/stdlib/getenv_test.cpp

Removed: 
    


################################################################################
diff  --git a/libc/test/integration/src/stdlib/getenv_test.cpp b/libc/test/integration/src/stdlib/getenv_test.cpp
index 0d1b58a5e645..a4b3ff53572e 100644
--- a/libc/test/integration/src/stdlib/getenv_test.cpp
+++ b/libc/test/integration/src/stdlib/getenv_test.cpp
@@ -32,8 +32,8 @@ int main(int argc, char **argv, char **envp) {
   ASSERT_TRUE(my_streq(__llvm_libc::getenv("="), static_cast<char *>(nullptr)));
   ASSERT_TRUE(my_streq(__llvm_libc::getenv("MISSING ENV VARIABLE"),
                        static_cast<char *>(nullptr)));
-  // ASSERT_FALSE(
-  //     my_streq(__llvm_libc::getenv("PATH"), static_cast<char *>(nullptr)));
+  ASSERT_FALSE(
+      my_streq(__llvm_libc::getenv("PATH"), static_cast<char *>(nullptr)));
   ASSERT_TRUE(my_streq(__llvm_libc::getenv("FRANCE"), "Paris"));
   ASSERT_FALSE(my_streq(__llvm_libc::getenv("FRANCE"), "Berlin"));
   ASSERT_TRUE(my_streq(__llvm_libc::getenv("GERMANY"), "Berlin"));


        


More information about the libc-commits mailing list