/ Check-in [19225b81]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Normalize the $testdir and $argv0 paths so that they continue to work in the testing subdirectory.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | test-in-subdir
Files: files | file ages | folders
SHA1: 19225b8130f1640772fc54250583b571a89063b6
User & Date: drh 2016-03-14 14:28:43
Context
2016-03-14
14:59
More file pathname normalization. Closed-Leaf check-in: fa8c1292 user: drh tags: test-in-subdir
14:28
Normalize the $testdir and $argv0 paths so that they continue to work in the testing subdirectory. check-in: 19225b81 user: drh tags: test-in-subdir
13:42
Run TCL tests in a subdirectory "testdir". check-in: f632bba0 user: drh tags: test-in-subdir
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/tester.tcl.

513
514
515
516
517
518
519

520

521
522
523
524
525
526
527
      }

      default {
        lappend leftover [file normalize $a]
      }
    }
  }

  set cmdlinearg(TESTFIXTURE_HOME) [pwd]

  if {$cmdlinearg(testdir)!=""} {
    file mkdir $cmdlinearg(testdir)
    cd $cmdlinearg(testdir)
  }
  set argv $leftover

  # Install the malloc layer used to inject OOM errors. And the 'automatic'







>

>







513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
      }

      default {
        lappend leftover [file normalize $a]
      }
    }
  }
  set testdir [file normalize $testdir]
  set cmdlinearg(TESTFIXTURE_HOME) [pwd]
  set argv0 [file normalize $argv0]
  if {$cmdlinearg(testdir)!=""} {
    file mkdir $cmdlinearg(testdir)
    cd $cmdlinearg(testdir)
  }
  set argv $leftover

  # Install the malloc layer used to inject OOM errors. And the 'automatic'