tests: avoid test failure on Solaris 10 due to lack of PATH export
[pspp] / tests / init.sh
index a57de77a2f1ac47a83be0adf463b8c05b9221790..14f3b198d43d2b3677f17fb489f7324f9de2183b 100644 (file)
@@ -330,6 +330,12 @@ setup_()
     || fail_ "failed to create temporary directory in $initial_cwd_"
   cd "$test_dir_"
 
+  # As autoconf-generated configure scripts do, ensure that IFS
+  # is defined initially, so that saving and restoring $IFS works.
+  gl_init_sh_nl_='
+'
+  IFS=" ""     $gl_init_sh_nl_"
+
   # This trap statement, along with a trap on 0 below, ensure that the
   # temporary directory, $test_dir_, is removed upon exit as well as
   # upon receipt of any of the listed signals.