emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/realgud 94f2835 31/72: Just another remake test


From: Stefan Monnier
Subject: [elpa] externals/realgud 94f2835 31/72: Just another remake test
Date: Fri, 26 Mar 2021 22:49:08 -0400 (EDT)

branch: externals/realgud
commit 94f283593304c2f673cb4940900197d9cb099faa
Author: rocky <rocky@gnu.org>
Commit: rocky <rocky@gnu.org>

    Just another remake test
---
 test/test-regexp-remake.el | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/test/test-regexp-remake.el b/test/test-regexp-remake.el
index e6e69b0..29141e4 100644
--- a/test/test-regexp-remake.el
+++ b/test/test-regexp-remake.el
@@ -25,6 +25,9 @@
 (set (make-local-variable 'frame-pat)
      (gethash "debugger-backtrace" realgud:remake-pat-hash))
 
+(set (make-local-variable 'loc-pat)
+     (gethash "loc" realgud:remake-pat-hash))
+
 (note "remake prompt")
 (prompt-match "remake<10> "  "10")
 (prompt-match  "remake<<1>> " "1" "recursive remake %s")
@@ -72,4 +75,16 @@
                         (match-beginning line-group)
                         (match-end line-group)))
 
+(note "target dependency testing")
+(setq test-text
+      "-> (/src/external-vcs/github/rocky/remake/Makefile:1466)")
+
+(assert-t (numberp (loc-match test-text loc-pat))
+         "remake dependency location")
+
+(assert-equal "/src/external-vcs/github/rocky/remake/Makefile"
+             (match-string (realgud-loc-pat-file-group loc-pat)
+                           test-text))
+
+
 (end-tests)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]