2 # Copyright (C) 2010, Parrot Foundation.
7 t/op/errorson.t - Test the errorson opcode
11 % prove t/op/errorson.t
15 Tests that the errorson opcode turns exception-throwing on and off correctly.
20 .include 'test_more.pir'
21 .include 'errors.pasm'
28 errorson .PARROT_ERRORS_GLOBALS_FLAG
30 $P0 = find_name "i_better_not_exist_or_this_thing_is_crazy"
32 if null $P0 goto wasnull
33 ok(0, "variable not null, must have existed somehow. inconceivable!")
36 todo(0,'errorson did not throw an exception for calling find_name on an unbound variable with PARROT_ERRORS_GLOBALS_FLAG')
40 ok(1,'errorson threw an exception for calling find_name on an unbound variable with PARROT_ERRORS_GLOBALS_FLAG')
47 # vim: expandtab shiftwidth=4 ft=pir: