wibble  0.1.28
lockfile.test.h
Go to the documentation of this file.
1 /* -*- C++ -*- (c) 2007 Petr Rockai <me@mornfall.net>
2  (c) 2007 Enrico Zini <enrico@enricozini.org> */
3 #include <wibble/sys/lockfile.h>
4 #include <cstdlib>
5 #include <set>
6 
7 #include <wibble/test.h>
8 
9 using namespace std;
10 using namespace wibble::sys::fs;
11 
12 struct TestLockfile {
13  // Cannot test the locks without forking, as reacquiring the lock from the
14  // same process is just an update of the previous lock
16  Lockfile lk1("testlock", false);
17  }
18 
20  Lockfile lk1("testlock", true);
21  }
22 };
23 
24 // vim:set ts=4 sw=4: