Commit 9aa5fa1d authored by unknown's avatar unknown

Put the "test_running_as_root.txt" file in the vardir to avoid that two...

Put the "test_running_as_root.txt" file in the vardir to avoid that two mysql-test-run's running in parallel uses the same file


parent 23aeb617
...@@ -1344,7 +1344,7 @@ sub kill_and_cleanup () { ...@@ -1344,7 +1344,7 @@ sub kill_and_cleanup () {
sub check_running_as_root () { sub check_running_as_root () {
# Check if running as root # Check if running as root
# i.e a file can be read regardless what mode we set it to # i.e a file can be read regardless what mode we set it to
my $test_file= "test_running_as_root.txt"; my $test_file= "$opt_vardir/test_running_as_root.txt";
mtr_tofile($test_file, "MySQL"); mtr_tofile($test_file, "MySQL");
chmod(oct("0000"), $test_file); chmod(oct("0000"), $test_file);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment