2 # Copyright (C) 2001-2008, Parrot Foundation.
7 use lib qw( . lib ../lib ../../lib );
10 use Parrot::Test::Util 'create_tempfile';
12 use Parrot::Test tests => 2;
16 t/pmc/sys.t - System Tests
24 Tests system dependent stuff
28 my (undef, $temp_pir) = create_tempfile( SUFFIX => '.pir', UNLINK => 1 );
30 pir_output_is( <<"CODE", <<OUT, "spawnw, _config" );
34 O = new ['FileHandle']
35 O.'open'("$temp_pir", 'w')
36 print O, ".sub _main :main\\n"
37 print O, "\tsay \\"Hello, World!\\"\\n"
40 load_bytecode 'config.pbc'
44 slash = conf_hash["slash"]
46 parrot = conf_hash["test_prog"]
61 pir_output_is( <<'CODE', <<'OUT', "conf_hash is read-only")
63 load_bytecode 'config.pbc'
67 conf_hash['foo'] = 'bar'
71 say 'hash is read-only'
81 # cperl-indent-level: 4
84 # vim: expandtab shiftwidth=4: