fs/tmp: actually test test suite
This commit is contained in:
parent
ff1ed506bd
commit
f2ce328e1e
18
test/fs/tmp.cpp
Normal file
18
test/fs/tmp.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include <cruft/util/tap.hpp>
|
||||
#include <cruft/util/fs/tmp.hpp>
|
||||
#include <cruft/util/fs/scoped.hpp>
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
|
||||
int main (int, char **)
|
||||
{
|
||||
cruft::TAP::logger tap;
|
||||
|
||||
{
|
||||
cruft::fs::scoped_dir dir (cruft::fs::mktmpdir ());
|
||||
tap.expect (std::filesystem::is_directory (*dir), "tmpdir is a directory");
|
||||
}
|
||||
|
||||
return tap.status ();
|
||||
}
|
Loading…
Reference in New Issue
Block a user