]> sourceware.org Git - systemtap.git/commitdiff
Preserve the working directory within the test.
authorMartin Cermak <mcermak@redhat.com>
Mon, 14 Mar 2016 07:39:22 +0000 (08:39 +0100)
committerMartin Cermak <mcermak@redhat.com>
Mon, 14 Mar 2016 07:39:22 +0000 (08:39 +0100)
Test must not change the working directory.  Without this update,
when target_compile() failed, test finished with working directory
set to $tmpdir instead of $curdir breaking all subsequent tests:

=====
Running ./systemtap.base/utrace_syscall_args.exp ...
UNTESTED: 64_BIT_UTRACE_SYSCALL_ARGS
Running ./systemtap.base/valid_pid.exp ...
ERROR: ./systemtap.base/valid_pid.exp does not exist.
...
=====

testsuite/systemtap.base/utrace_syscall_args.exp

index 29aa88557fc615c9c680d5ae3d06a8a8126db8a1..51ce3873ac1c7588924e117f2e276c269cbc14a6 100644 (file)
@@ -39,6 +39,7 @@ for {set i 0} {$i < [arch_compile_flags]} {incr i} {
        verbose "target_compile for $exepath failed: $res" 2
        send_log "$testname: unable to compile $srcpath\n"
        untested $testname       
+        cd $curdir
        return
     }
 
This page took 0.030474 seconds and 5 git commands to generate.