| 
|   | directWrite () | 
|   | 
| 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 431 of file fileOpsTests.cpp.
 
◆ directWrite()
  
  
      
        
          | directWrite::directWrite  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Definition at line 433 of file fileOpsTests.cpp.
  434                                 "create a file with O_DIRECT and write into it", {
 
  435         {
"file", 
"path to file" 
  438     {{
time, 
"wait this long between writes"}}) {};
 
 
 
 
◆ execute()
  
  
      
        
          | void directWrite::execute  | 
          ( | 
          const std::vector< std::string > &  | 
          remainingOptions | ) | 
           | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
Implements baseTest.
Definition at line 439 of file fileOpsTests.cpp.
  440         auto file = remainingOptions.at(0);
 
  443                                              PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS,
 
  446                                         "mmap ", 
content.size(), 
" bytes anonymously");
 
  448         auto fd = 
throwcall::badval(open(file.c_str(), O_CREAT | O_WRONLY | O_DIRECT, 0744), -1, 
"open ", file);
 
  449         for (
unsigned i = 0; i < 
blocks; i++) {
 
  451                 std::this_thread::sleep_for(
time);
 
 
References throwcall::badval(), baseTest::blocks, baseTest::content, baseTest::createdFiles, 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