Make different threads use different FILE*'s
[wimlib] / tests / test-imagex-capture_and_apply
index 08fe6f623c3b6bf4b0a7faaef4b6cb4b02021c6f..00090281f378ab1b544c1191da182505293628f0 100755 (executable)
@@ -9,9 +9,9 @@
 # Also, test if the capture configuration file works correctly.
 
 set -e
-srcdir=${srcdir:-.}
-srcdir=`realpath $srcdir`
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 imagex() {
        echo "imagex $@"