Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
cetlib
cetlib
test
filesystem_test.cc
Go to the documentation of this file.
1
// ======================================================================
2
//
3
// test getenv
4
//
5
// ======================================================================
6
7
#include "
cetlib/filesystem.h
"
8
9
#include <cstdlib>
10
11
void
12
ensure
(
int
which,
bool
claim)
13
{
14
if
(not claim)
15
std::exit(which);
16
}
17
18
int
19
main
()
20
{
21
ensure
(1, !
cet::file_exists
(
"xyxxy"
));
22
23
return
0;
24
25
}
// main()
ensure
void ensure(int which, bool claim)
Definition:
filesystem_test.cc:12
main
int main()
Definition:
filesystem_test.cc:19
filesystem.h
cet::file_exists
bool file_exists(std::string const &qualified_filename)
Definition:
filesystem.cc:14
Generated by
1.8.11