libcruft-util/test/exe.cpp
Danny Robson 34788756d2 build: don't use './' as an include prefix
GCC produces ODR error when including paths of the form './foo' and
'foo' in the same binary. Rather than managing duplication we just
universally pick the absolute form over the relative form.
2017-11-22 16:49:37 +11:00

18 lines
334 B
C++

#include "../tap.hpp"
#include "../exe.hpp"
#include <iostream>
///////////////////////////////////////////////////////////////////////////////
int
main (int, char **argv)
{
util::TAP::logger tap;
auto path = util::image_path ();
tap.expect_eq (path, argv[0], "identify executable path");
return tap.status ();
}