Functions
filesystem_test.cc File Reference
#include "cetlib/filesystem.h"
#include <cstdlib>

Go to the source code of this file.

Functions

void ensure (int which, bool claim)
 
int main ()
 

Function Documentation

void ensure ( int  which,
bool  claim 
)

Definition at line 12 of file filesystem_test.cc.

13 {
14  if (not claim)
15  std::exit(which);
16 }
int main ( void  )

Definition at line 19 of file filesystem_test.cc.

20 {
21  ensure(1, !cet::file_exists("xyxxy"));
22 
23  return 0;
24 
25 } // main()
void ensure(int which, bool claim)
bool file_exists(std::string const &qualified_filename)
Definition: filesystem.cc:14