File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- # Bug is that file cache highlight isn't updated when when
2
+ # Bug is that file cache highlight isn't updated when
3
3
# it is already cached so it continues to refer to a line in the source'd file
4
4
# rather than file it was source'd from (here it is this file).
5
5
dirname=${BASH_SOURCE%/* } # equivalent to dirname($0)
Original file line number Diff line number Diff line change @@ -10,7 +10,21 @@ debugged_script="$top_srcdir/test/example/bug-loc.sh"
10
10
11
11
if ( pygmentize --version || pygmentize -V ) 2> /dev/null 1> /dev/null ; then
12
12
run_debugger_opts=" -B -q --no-init --highlight=light"
13
- run_test_check $TEST_NAME $TEST_NAME $debugged_script
13
+ (cd $srcdir && run_debugger " $debugged_script " 2>&1 > " $TEST_FILE " < /dev/null)
14
+
15
+ # We're removing highlighted lines because Pygments is often changing the highlighting
16
+ /usr/bin/grep -v -E " ^[0-9]+:" $' \t ' " $TEST_FILE " > " ${TEST_FILTERED_FILE} "
17
+ /usr/bin/grep -v -E " ^[0-9]+:" $' \t ' " $RIGHT_FILE " > " ${RIGHT_FILTERED_FILE} "
18
+
19
+ check_output " $TEST_FILTERED_FILE " " $RIGHT_FILTERED_FILE "
20
+ rc=$?
21
+ if (( 0 == rc)) ; then
22
+ rm -f $TEST_FILTERED_FILE
23
+ rm -f $RIGHT_FILTERED_FILE
24
+ fi
25
+
26
+ # Return code tells testing mechanism whether passed or not.
27
+ exit $rc
14
28
else
15
29
exit 77
16
30
fi
You can’t perform that action at this time.
0 commit comments