]> sourceware.org Git - systemtap.git/commitdiff
Avoid creating a file called '&1' in testsuite/systemtap.pass1-4/semko.exp.
authorDavid Smith <dsmith@redhat.com>
Fri, 2 Dec 2016 17:28:34 +0000 (11:28 -0600)
committerDavid Smith <dsmith@redhat.com>
Fri, 2 Dec 2016 17:28:34 +0000 (11:28 -0600)
testsuite/systemtap.pass1-4/semko.exp

index 0b8dffa2f412e7cd183e47f7e4a341a1a7c45c72..cfa4d2d102031c3de9f3dd9e60cd0dca5f06603e 100644 (file)
@@ -25,7 +25,11 @@ foreach runtime [get_runtime_list] {
                    # version of vfs_read() doesn't exist. One does
                    # exist on 3.10.0-327.el7.ppc64.
                    set pp "kernel.function(\"vfs_read\").inline"
-                   if {![catch {exec stap -l ${pp} 2>&1} dummy]} {
+
+                   # Notice we are using the tcl 'exec' command
+                   # redirection of '2>@1', which is equivalent to
+                   # the shell's '2>&1'.
+                   if {![catch {exec stap -l ${pp} 2>@1} dummy]} {
                        untested $test; continue } }
            }
            
This page took 0.025227 seconds and 5 git commands to generate.