Skip to content

Commit

Permalink
Merge pull request #395 from b4n/debugger/gdb_mi_test-portability
Browse files Browse the repository at this point in the history
debugger: Don't rely on an Automake test driver implementation detail
  • Loading branch information
frlan committed Mar 9, 2016
2 parents 7c15fe7 + 7c4fa2a commit 7505e8b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions debugger/src/tests/gdb_mi_test.sh
Expand Up @@ -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"

0 comments on commit 7505e8b

Please sign in to comment.