|
| appendHole () |
|
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 570 of file fileOpsTests.cpp.
◆ appendHole()
appendHole::appendHole |
( |
| ) |
|
|
inline |
Definition at line 572 of file fileOpsTests.cpp.
573 "append a hole to an existing file", {
574 {
"file",
"path to file"
◆ execute()
void appendHole::execute |
( |
const std::vector< std::string > & |
remainingOptions | ) |
|
|
inlineoverridevirtual |
Implements baseTest.
Definition at line 577 of file fileOpsTests.cpp.
578 auto file = remainingOptions.at(0);
579 auto fd =
throwcall::badval(open(file.c_str(), O_WRONLY, 0744), -1,
"open ", file);
580 auto oldFileEnd =
throwcall::badval(lseek(fd, 0, SEEK_END), -1,
"seek end of ", file);
References throwcall::badval(), baseTest::blocks, baseTest::content, baseTest::createdFiles, 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