|
| createUnlinkCreate () |
|
void | execute (const std::vector< std::string > &remainingOptions) override |
|
| baseTest (const std::string &aName, const std::string &aDescription, const decltype(parameters)&aParameters, const decltype(options)&aOptions={}) |
|
void | ensuredWrite (int fd, const std::string &data) |
|
void | ensuredRead (int fd, std::string &data) |
|
void | Execute (const std::vector< std::string > &remainingOptions) |
|
Definition at line 589 of file fileOpsTests.cpp.
◆ createUnlinkCreate()
createUnlinkCreate::createUnlinkCreate |
( |
| ) |
|
|
inline |
Definition at line 591 of file fileOpsTests.cpp.
592 "create, unlink, re-create a file", {
593 {
"file",
"path to file"
◆ execute()
void createUnlinkCreate::execute |
( |
const std::vector< std::string > & |
remainingOptions | ) |
|
|
inlineoverridevirtual |
Implements baseTest.
Definition at line 596 of file fileOpsTests.cpp.
597 auto file = remainingOptions.at(0);
598 auto fd =
throwcall::badval(open(file.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0744), -1,
"open ", file);
603 fd =
throwcall::badval(open(file.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0744), -1,
"open ", file);
References throwcall::badval(), baseTest::content, baseTest::createdFiles, baseTest::ensuredWrite(), and throwcall::good0().
The documentation for this class was generated from the following file:
T badval(T call, t badvalue, const Args &... args)
template function to wrap system calls that return a special bad value on failure