Branch: Tag:

2008-01-29

2008-01-29 17:54:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Adjusted testsuite to new compiler errors.
Improved robustness of two tests.

Rev: src/testsuite.in:1.797

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.796 2008/01/16 18:01:50 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.797 2008/01/29 17:54:17 grubba Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
1609:   test_any([[ int a,b; [a,b]=({1,2}); return b]],2)   test_any([[ int a,b; [ [a],b]=({ ({ 1 }) ,2}); return a]],1)   test_any([[ int a,b; [ [a],b]=({ ({ 1 }) ,2}); return b]],2) - test_any([[ int a; catch { [a]=({1,2}); }; return 1]],1) - test_any([[ int a,b; catch { [a,b]=({1}); }; return 1]],1) + test_any([[ int a; catch { [a]=({1,2}); return 0; }; return 1]],1) + test_compile_error([[ int a,b; catch { [a,b]=({1}); return 0; }; return 1]],1) + test_any([[ int a,b; catch { [a,b]=lambda(){ return ({1}); }() return 0; }; return 1]],1)   test_any([[ mapping m=([]); m[m]=m; return stringp(sprintf("%O",m)); ]],1)   dnl test_any([[   dnl // don't know if this /should/ be valid /Mirar