Description: add dummy package to load-path
 The tests uses `package-initialize' to add it's package to
 package-user-dir, but in newer Emacs version package.el initializes
 before loading init.el and calling `package-intialize' twice
 generates a warning.  This patch manually add the dummy package path
 to 'load-path to achieve a similar effect.
Author: Xiyue Deng <manphiz@gmail.com>
Forwarded: not-needed
Last-Update: 2025-03-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/test-helper.el
+++ b/test/test-helper.el
@@ -40,7 +40,11 @@
 
   ;; Point package.el to our test packages
   (setq package-user-dir (expand-file-name "test/elpa" source-directory))
-  (package-initialize))
+  (package-initialize)
+
+  (add-to-list 'load-path
+               (expand-file-name "test/elpa/pkg-info-dummy-package-3.4.2.1"
+                                 source-directory)))
 
 ;; Local Variables:
 ;; indent-tabs-mode: nil
