From ca7f4b739a37db14f024875e854825565605fb64 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 25 Jan 2017 15:07:14 +1100 Subject: [PATCH] exe: test image query against argv, not constants --- test/exe.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/exe.cpp b/test/exe.cpp index efa78aab..1f909382 100644 --- a/test/exe.cpp +++ b/test/exe.cpp @@ -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 (); }