18 lines
363 B
C++
18 lines
363 B
C++
|
#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 ();
|
||
|
}
|