[libcxx-commits] [PATCH] D78200: [libc++] [test] Generate static_test_env on the fly

Eric Fiselier via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 6 13:00:45 PDT 2020


EricWF added inline comments.


================
Comment at: libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.current_path/current_path.pass.cpp:54
 {
-    const path new_path = StaticEnv::Dir;
+    CWDGuard guard;
+    static_test_env static_env;
----------------
You are now using `current_path` in the setup for the `current_path` tests.
This is not OK. You cannot use the entity under test in said entities tests.

Please revert the patch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78200





More information about the libcxx-commits mailing list