[libcxx] r307119 - Fix equivalent test on OS X and FreeBSD
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 4 20:54:38 PDT 2017
Author: ericwf
Date: Tue Jul 4 20:54:38 2017
New Revision: 307119
URL: http://llvm.org/viewvc/llvm-project?rev=307119&view=rev
Log:
Fix equivalent test on OS X and FreeBSD
Modified:
libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.equivalent/equivalent.pass.cpp
Modified: libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.equivalent/equivalent.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.equivalent/equivalent.pass.cpp?rev=307119&r1=307118&r2=307119&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.equivalent/equivalent.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.equivalent/equivalent.pass.cpp Tue Jul 4 20:54:38 2017
@@ -99,14 +99,14 @@ TEST_CASE(equivalent_hardlink_succeeds)
TEST_CASE(equivalent_is_other_succeeds) {
scoped_test_env env;
path const file = env.create_file("file", 42);
- const path sock1 = env.create_socket("sock1");
- const path sock2 = env.create_socket("sock2");
+ const path fifo1 = env.create_fifo("fifo1");
+ const path fifo2 = env.create_fifo("fifo2");
// Required to test behavior for inputs where is_other(p) is true.
- TEST_REQUIRE(is_other(sock1));
- TEST_CHECK(!equivalent(file, sock1));
- TEST_CHECK(!equivalent(sock2, file));
- TEST_CHECK(!equivalent(sock1, sock2));
- TEST_CHECK(equivalent(sock1, sock1));
+ TEST_REQUIRE(is_other(fifo1));
+ TEST_CHECK(!equivalent(file, fifo1));
+ TEST_CHECK(!equivalent(fifo2, file));
+ TEST_CHECK(!equivalent(fifo1, fifo2));
+ TEST_CHECK(equivalent(fifo1, fifo1));
}
TEST_SUITE_END()
More information about the cfe-commits
mailing list