Extra debug output in run-test.
Dump PATH_MAX and NAME_MAX on failure.
Also fix typo in dumping args.
Change-Id: I3df0dbc45db0659c975ac86a12f338df2a7291dc
diff --git a/test/run-test b/test/run-test
index 2ef3ab1..c4a6296 100755
--- a/test/run-test
+++ b/test/run-test
@@ -526,8 +526,12 @@
cp "$build_output" "$output"
echo "Failed to build in tmpdir=${tmp_dir} from oldwd=${oldwd} and cwd=`pwd`" >> "$output"
echo "Non-canonical tmpdir was ${noncanonical_tmp_dir}" >> "$output"
- echo "Args: ${args}" >> "output"
+ echo "Args: ${args}" >> "$output"
echo "build exit status: $build_exit" >> "$output"
+ echo "Max filename (NAME_MAX):" >> "$output"
+ getconf NAME_MAX ${tmp_dir} >> "$output"
+ echo "Max pathlength (PATH_MAX):" >> "$output"
+ getconf PATH_MAX ${tmp_dir} >> "$output"
fi
./$check_cmd "$expected" "$output"
if [ "$?" = "0" ]; then