exe: test image query against argv, not constants

This commit is contained in:
Danny Robson 2017-01-25 15:07:14 +11:00
parent 845c8dd14d
commit ca7f4b739a

View File

@ -7,9 +7,11 @@
///////////////////////////////////////////////////////////////////////////////
int
main (int, char**)
main (int, char **argv)
{
util::TAP::logger tap;
tap.expect_eq (util::image_path ().stem (), "exe", "identify executable path");
auto path = util::image_path ();
tap.expect_eq (path, argv[0], "identify executable path");
return tap.status ();
}