File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
; ; Author: Mats Lidell <[email protected] >
4
4
; ;
5
5
; ; Orig-Date: 30-may-21 at 09:33:00
6
- ; ; Last-Mod: 16 -Dec-24 at 00:55:21 by Bob Weiner
6
+ ; ; Last-Mod: 22 -Dec-24 at 21:58:44 by Mats Lidell
7
7
; ;
8
8
; ; SPDX-License-Identifier: GPL-3.0-or-later
9
9
; ;
@@ -223,7 +223,8 @@ Create button with link-to-directory using `temporary-file-directory`."
223
223
224
224
(ert-deftest hbut-tests-ibut-program-link-to-file ()
225
225
" Programatically create ibut link to file."
226
- (let ((test-file (make-temp-file " ibut" nil " .txt" )))
226
+ (let ((test-file (make-temp-file " ibut" nil " .txt" ))
227
+ (default-directory " /home/user/directory/" )) ; Make link be absolute
227
228
(unwind-protect
228
229
(with-temp-buffer
229
230
(ibut:program " name" 'link-to-file test-file)
@@ -238,7 +239,8 @@ Create button with link-to-directory using `temporary-file-directory`."
238
239
(ibut:program " name" 'link-to-directory " /tmp/" )
239
240
(should (string= " <[name]> - \" /tmp/\" " (buffer-string )))
240
241
(goto-char 3 )
241
- (let ((but (ibut:at-p)))
242
+ (let ((but (ibut:at-p))
243
+ (default-directory " /home/user/directory/" )) ; Make link be absolute
242
244
(should but)
243
245
(with-temp-buffer
244
246
(ibut:insert-text but)
You can’t perform that action at this time.
0 commit comments