[geany/geany-plugins] 7505e8: Merge pull request #395 from b4n/debugger/gdb_mi_test-portability

Frank Lanitz git-noreply at xxxxx
Wed Mar 9 18:55:49 UTC 2016


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Wed, 09 Mar 2016 18:55:49 UTC
Commit:      7505e8bddf69f262518912c5ad91964fffa6ac4b
             https://github.com/geany/geany-plugins/commit/7505e8bddf69f262518912c5ad91964fffa6ac4b

Log Message:
-----------
Merge pull request #395 from b4n/debugger/gdb_mi_test-portability

debugger: Don't rely on an Automake test driver implementation detail


Modified Paths:
--------------
    debugger/src/tests/gdb_mi_test.sh

Modified: debugger/src/tests/gdb_mi_test.sh
9 lines changed, 6 insertions(+), 3 deletions(-)
===================================================================
@@ -9,11 +9,14 @@ strip_comments()
   ${SED:-sed} -e '/^#/d'
 }
 
-TMPOUT=tests/gdb_mi_test.output.tmp
-TMPEXCPT=tests/gdb_mi_test.expected.tmp
+SUBDIR=tests
+TMPOUT=$SUBDIR/gdb_mi_test.output.tmp
+TMPEXCPT=$SUBDIR/gdb_mi_test.expected.tmp
 
-trap 'rm -f "$TMPOUT" "$TMPEXCPT"' EXIT QUIT TERM INT
+trap 'rm -f "$TMPOUT" "$TMPEXCPT";
+      rmdir "$SUBDIR" 2>/dev/null || :' EXIT QUIT TERM INT
 
+test -d "$SUBDIR" || mkdir "$SUBDIR"
 strip_comments < "$srcdir/tests/gdb_mi_test.input" | ./gdb_mi_test 2> "$TMPOUT"
 strip_comments < "$srcdir/tests/gdb_mi_test.expected" > "$TMPEXCPT"
 diff -u "$TMPEXCPT" "$TMPOUT"



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list