• R/O
  • SSH

posixpp: Commit

The main posixpp library and associated tests.


Commit MetaInfo

Revision61484b250fd1be0b2795d56cd3bbb0129d390815 (tree)
Time2021-04-28 21:51:39
AuthorEric Hopper <hopper@omni...>
CommiterEric Hopper

Log Message

Fix to use .native() instead of .string() to get filenames.

Change Summary

Incremental Difference

diff -r 24a7c6e1a249 -r 61484b250fd1 tests/simplefd.cpp
--- a/tests/simplefd.cpp Wed Apr 28 05:39:34 2021 -0700
+++ b/tests/simplefd.cpp Wed Apr 28 05:51:39 2021 -0700
@@ -21,7 +21,7 @@
2121 using ::posixpp::modeflags;
2222 auto foo{
2323 fd::open(
24- fooname.string().c_str(),
24+ fooname.native().c_str(),
2525 of::creat | fdf::wronly,
2626 modeflags::irwall
2727 ).result()
@@ -34,7 +34,7 @@
3434 "The C access call shows the file "
3535 "existing and being readable and writable"
3636 ) {
37- REQUIRE(::access(fooname.string().c_str(), R_OK | W_OK) == 0);
37+ REQUIRE(::access(fooname.native().c_str(), R_OK | W_OK) == 0);
3838 }
3939 AND_GIVEN(
4040 "a small, constant sized message and a small similarly "
@@ -55,7 +55,7 @@
5555 REQUIRE_FALSE(close_result.has_error());
5656 REQUIRE_FALSE(foo.is_valid());
5757
58- foo = fd::open(fooname.string().c_str(), fdf::rdonly).result();
58+ foo = fd::open(fooname.native().c_str(), fdf::rdonly).result();
5959 REQUIRE(foo.is_valid());
6060
6161 // Try to read more than was written to make sure we can't read
Show on old repository browser