~vcs-imports-ii/dejagnu/master

« back to all changes in this revision

Viewing changes to lib/dejagnu.exp

  • Committer: Ben Elliston
  • Date: 2018-12-09 07:41:26 UTC
  • Revision ID: git-v1:e2fb9266669c87021ce666f8dca81ab2d96635d1
        * baseboards/basic-sid.exp, baseboards/basic-sim.exp,
        baseboards/i386-sid.exp, baseboards/mt-sid.exp,
        baseboards/sh-sid.exp, config/adb.exp, config/gdb-comm.exp,
        config/gdb_stub.exp, config/sim.exp, config/unix.exp,
        config/vxworks.exp, lib/dejagnu.exp, lib/dg.exp,
        lib/framework.exp, lib/kermit.exp, lib/libgloss.exp,
        lib/remote.exp, lib/rsh.exp, lib/target.exp, lib/tip.exp,
        lib/utils.exp, testsuite/lib/libsup.exp,
        testsuite/runtest.all/options.exp,: Remove unnecessary braces
        around variable expansions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    }
95
95
 
96
96
    # return the filtered output
97
 
    return ${comp_output}
 
97
    return $comp_output
98
98
}
99
99
 
100
100
# Execute the executable file, and analyse the output for the test
121
121
    }
122
122
 
123
123
    verbose "The executable is $executable" 2
124
 
    if {![file exists ${executable}]} {
 
124
    if {![file exists $executable]} {
125
125
        perror "The executable, \"$executable\" is missing" 0
126
126
        return "No source file found"
127
127
    }
129
129
    # spawn the executable and look for the DejaGnu output messages from the
130
130
    # test case.
131
131
    # spawn -noecho -open [open "|./${executable}" "r"]
132
 
    spawn -noecho "./${executable}" ${params}
 
132
    spawn -noecho "./${executable}" $params
133
133
    set prefix "\[^\r\n\]*"
134
134
    expect {
135
135
        -re "^$prefix\[0-9\]\[0-9\]:..:..:${text}*\r\n" {