File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed
test/library/standard/Debugger Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1- proc foo(x) {
1+ config const myVar = 42 ;
2+ proc foo(x) throws {
23 if x > 0 {
34 halt(" x is greater than 0" );
5+ } else {
6+ throw new Error(" x is not greater than 0" );
47 }
58}
69
710proc main() {
8-
9- foo(10 );
10-
11+ foo(myVar);
1112}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- if command -v gdb > /dev/null ; then
4- echo " --gdb"
5- fi
63
7- if command -v lldb > /dev/null ; then
8- echo " --lldb"
9- fi
4+ for i in -5 17; do
5+ if command -v gdb > /dev/null ; then
6+ echo " --myVar=$i --gdb"
7+ fi
8+
9+ if command -v lldb > /dev/null ; then
10+ echo " --myVar=$i --lldb"
11+ fi
12+ done
Original file line number Diff line number Diff line change 22
33file=$2
44
5- if grep -q -E ' #1:.*chpl_error_explicit' $file ; then
5+ if grep -q -E ' #1:.*( chpl_error_explicit|chpl_error_preformatted) ' $file ; then
66 echo " Success: Found expected output" > $file
77else
8- echo " Failure: Expected output not found" > $file
8+ echo " Failure: Expected output not found" >> $file
99fi
You can’t perform that action at this time.
0 commit comments