| 
|   | appendBlocks () | 
|   | 
| 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 354 of file fileOpsTests.cpp.
 
◆ appendBlocks()
  
  
      
        
          | appendBlocks::appendBlocks  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Definition at line 356 of file fileOpsTests.cpp.
  357                                  "create a file and append blocks to it, changing the first one.", {
 
  358         {
"file", 
"path to file" 
  361     {{
time, 
"wait this long between writes"}}) {};
 
 
 
 
◆ execute()
  
  
      
        
          | void appendBlocks::execute  | 
          ( | 
          const std::vector< std::string > &  | 
          remainingOptions | ) | 
           | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
Implements baseTest.
Definition at line 362 of file fileOpsTests.cpp.
  363         auto file = remainingOptions.at(0);
 
  364         for (
unsigned i = 0; i < 
blocks; i++) {
 
  366                 std::this_thread::sleep_for(
time);
 
  368             auto fd = 
throwcall::badval(open(file.c_str(), O_CREAT | O_WRONLY, 0744), -1, 
"open ", file);
 
 
References throwcall::badval(), baseTest::blocks, baseTest::content, baseTest::createdFiles, baseTest::ensuredWrite(), throwcall::good0(), and baseTest::time.
 
 
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