diff options
author | David Kalnischkies <david@kalnischkies.de> | 2018-05-04 19:56:41 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2018-05-05 00:34:27 +0200 |
commit | b12bdeaf8acd050c5526ecc05526db70df5fd485 (patch) | |
tree | 583f7ed831b0267c5d6103abab5fbc4b44906003 /test/libapt/compareversion_test.cc | |
parent | 5f9c05db78926dfb063fdd0493ecc6b8e12c2e02 (diff) |
Fix various typos reported by spellcheckers
Reported-By: codespell & spellintian
Gbp-Dch: Ignore
Diffstat (limited to 'test/libapt/compareversion_test.cc')
-rw-r--r-- | test/libapt/compareversion_test.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/libapt/compareversion_test.cc b/test/libapt/compareversion_test.cc index ee469f785..012932286 100644 --- a/test/libapt/compareversion_test.cc +++ b/test/libapt/compareversion_test.cc @@ -37,19 +37,20 @@ static bool callDPKG(const char * const val, const char * const ref, char const if (Process == 0) { const char * args[] = { - BIN_DIR "/dpkg", + "dpkg", "--compare-versions", val, op, ref, nullptr }; - execv(args[0], (char**) args); + execvp(args[0], (char**) args); exit(1); } int Ret; waitpid(Process, &Ret, 0); - return WIFEXITED(Ret) == true && WEXITSTATUS(Ret) == 0; + EXPECT_TRUE(WIFEXITED(Ret)); + return WEXITSTATUS(Ret) == 0; } |