Branch: Tag:

2009-07-11

2009-07-11 11:48:23 by Martin Stjernholm <mast@lysator.liu.se>

Made split_quoted_string tolerant of quoting errors.

Rev: lib/modules/Process.pmod:1.62
Rev: lib/modules/testsuite.in:1.42

1: - dnl $Id: testsuite.in,v 1.41 2008/05/03 14:19:03 nilsson Exp $ + dnl $Id: testsuite.in,v 1.42 2009/07/11 11:48:23 mast Exp $      START_MARKER   
730:   test_equal([[Process.split_quoted_string("test ")]],[[({"test"})]])   test_equal([[Process.split_quoted_string("'test'")]],[[({"test"})]])   test_equal([[Process.split_quoted_string("foo 'test' bar")]],[[({"foo","test","bar"})]]) + test_equal([[Process.split_quoted_string ("\\\"")]], +  [[({"\""})]]) + test_equal([[Process.split_quoted_string ("\\a")]], +  [[({"a"})]]) + test_equal([[Process.split_quoted_string ("\\ ")]], +  [[({" "})]]) + test_equal([[Process.split_quoted_string ("x\\")]], +  [[({"x"})]]) + test_equal([[Process.split_quoted_string ("\"\\\"foo bar\"")]], +  [[({"\"foo bar"})]]) + test_equal([[Process.split_quoted_string ("\"\"foo bar\"")]], +  [[({"foo", "bar"})]])   test_equal([[Process.split_quoted_string("pike -m master.pike 'write(\"test\");'")]],[[({"pike","-m","master.pike","write(\"test\");"})]])   test_false([[   #ifdef __NT__