| 
|   | tmpFile () | 
|   | 
| 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 271 of file fileOpsTests.cpp.
 
◆ tmpFile()
Definition at line 273 of file fileOpsTests.cpp.
  274                             "create a file via O_TMPFILE", {
 
  275         {
"dir", 
"directory to create the file in"},
 
  276         {
"file", 
"path to the file to create"}
 
 
 
 
◆ execute()
  
  
      
        
          | void tmpFile::execute  | 
          ( | 
          const std::vector< std::string > &  | 
          remainingOptions | ) | 
           | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
Implements baseTest.
Definition at line 278 of file fileOpsTests.cpp.
  279         auto dir = remainingOptions.at(0);
 
  280         auto file = remainingOptions.at(1);
 
  281         auto result = unlink(file.c_str());
 
  282         if (result == -1 && errno != ENOENT) {
 
  286                                     "open anonymous file in ", dir);
 
  288         std::string path(
"/proc/self/fd/");
 
  289         path += std::to_string(fd);
 
  290         throwcall::good0(linkat(AT_FDCWD, path.c_str(), AT_FDCWD, file.c_str(), AT_SYMLINK_FOLLOW),
 
  291                          "link ", path, 
" to ", 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