From b12bdeaf8acd050c5526ecc05526db70df5fd485 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 4 May 2018 19:56:41 +0200 Subject: Fix various typos reported by spellcheckers Reported-By: codespell & spellintian Gbp-Dch: Ignore --- test/libapt/compareversion_test.cc | 7 ++++--- test/libapt/tagfile_test.cc | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'test/libapt') 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; } diff --git a/test/libapt/tagfile_test.cc b/test/libapt/tagfile_test.cc index 98af31fe9..f455a8dcc 100644 --- a/test/libapt/tagfile_test.cc +++ b/test/libapt/tagfile_test.cc @@ -235,7 +235,7 @@ TEST(TagFileTest, Comments) "Source: foo\n" "#Package: foo\n" "Section: bar\n" -"#Section: overriden\n" +"#Section: overridden\n" "Priority: optional\n" "Build-Depends: debhelper,\n" "# apt-utils, (temporarily disabled)\n" -- cgit v1.2.3