summaryrefslogtreecommitdiff
path: root/test/libapt
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2024-11-28 09:49:58 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2024-11-28 19:01:36 +0100
commit7038347919d59b2f96a8f51f994889a5b4d66cba (patch)
tree446d2934da7b82a943df66674dc396d6767c3746 /test/libapt
parent0496bc63a3ad1dcbc41d20225c6a0d50fbcf101d (diff)
fileutl: Use execvp() in Popen() instead of execv()
Diffstat (limited to 'test/libapt')
-rw-r--r--test/libapt/fileutl_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libapt/fileutl_test.cc b/test/libapt/fileutl_test.cc
index b35a2d45e..2badf5465 100644
--- a/test/libapt/fileutl_test.cc
+++ b/test/libapt/fileutl_test.cc
@@ -288,7 +288,7 @@ TEST(FileUtlTest, Popen)
OpenFds = Glob("/proc/self/fd/*");
// output something
- const char* Args[10] = {"/bin/echo", "meepmeep", NULL};
+ const char* Args[10] = {"echo", "meepmeep", NULL};
EXPECT_TRUE(Popen(Args, Fd, Child, FileFd::ReadOnly));
EXPECT_TRUE(Fd.Read(buf, sizeof(buf)-1, &n));
buf[n] = 0;