mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
fix csv test failure on non-linux platforms
mysql-test/t/csv.test: don't use "echo -n -e", as these flags are not supported by built-in "echo" commands found on many platforms.
This commit is contained in:
parent
a754f1befd
commit
c1cc8f2162
1 changed files with 2 additions and 2 deletions
|
@ -1424,7 +1424,7 @@ DROP TABLE test_repair_table2;
|
|||
|
||||
# Corrupt csv file and see if we can repair it
|
||||
CREATE TABLE test_repair_table3 ( val integer ) ENGINE = CSV;
|
||||
--exec echo -n -e \"1\"\\n\"4\"\\n\"3 > $MYSQLTEST_VARDIR/master-data/test/test_repair_table3.CSV
|
||||
--exec perl -e 'print "\"1\"\n\"4\"\n\"3";' > $MYSQLTEST_VARDIR/master-data/test/test_repair_table3.CSV
|
||||
CHECK TABLE test_repair_table3;
|
||||
REPAIR TABLE test_repair_table3;
|
||||
SELECT * FROM test_repair_table3;
|
||||
|
@ -1472,7 +1472,7 @@ CREATE TABLE test_repair_table5 (
|
|||
) ENGINE = CSV;
|
||||
|
||||
# Corrupt a table -- put a file with wrong # of columns
|
||||
--exec echo -n -e \"1\",\"101\",\"IBM\"\\n > $MYSQLTEST_VARDIR/master-data/test/test_repair_table5.CSV
|
||||
--exec perl -e 'print "\"1\",\"101\",\"IBM\"\n";' > $MYSQLTEST_VARDIR/master-data/test/test_repair_table5.CSV
|
||||
|
||||
CHECK TABLE test_repair_table5;
|
||||
REPAIR TABLE test_repair_table5;
|
||||
|
|
Loading…
Reference in a new issue