/usr/include/wibble/sys/lockfile.test.h is in libwibble-dev 0.1.28-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | /* -*- C++ -*- (c) 2007 Petr Rockai <me@mornfall.net>
(c) 2007 Enrico Zini <enrico@enricozini.org> */
#include <wibble/sys/lockfile.h>
#include <cstdlib>
#include <set>
#include <wibble/test.h>
using namespace std;
using namespace wibble::sys::fs;
struct TestLockfile {
// Cannot test the locks without forking, as reacquiring the lock from the
// same process is just an update of the previous lock
Test readlock() {
Lockfile lk1("testlock", false);
}
Test writelock() {
Lockfile lk1("testlock", true);
}
};
// vim:set ts=4 sw=4:
|