~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/outfile.test

  • Committer: patrick crews
  • Date: 2010-11-03 17:30:08 UTC
  • mto: (1902.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: gleebix@gmail.com-20101103173008-qogtvgzwydwsmpmd
Tweak func_str and outfile to deal with the limitations of only 128 chars available for filename + path in error messages

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
# the path to the server under test was long (110+ chars)
53
53
 
54
54
--disable_query_log
55
 
eval SET @tmpdir1="$DRIZZLETEST_VARDIR";
 
55
let $bad_test_file ="$DRIZZLETEST_VARDIR/tmp/bad";
56
56
--enable_query_log
57
 
--replace_result $DRIZZLETEST_VARDIR VAR
 
57
let $replace_substring = `SELECT SUBSTRING($bad_test_file,1,128)`;
 
58
--replace_result $replace_substring DRIZZLETEST_BAD_FILE $bad_test_file DRIZZLETEST_BAD_FILE
58
59
--error ER_TEXTFILE_NOT_READABLE
59
 
eval select load_file(concat(@tmpdir1,"/bad"));
 
60
eval select load_file($bad_test_file);
60
61
--remove_file $DRIZZLETEST_VARDIR/tmp/outfile-test.1
61
62
--remove_file $DRIZZLETEST_VARDIR/tmp/outfile-test.2
62
63
--remove_file $DRIZZLETEST_VARDIR/tmp/outfile-test.3