/usr/share/doc/crm114/examples/eval_infiniteloop.crm is in crm114 20100106-6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #! /usr/bin/crm
#
# eval_infiniteloop.com - test that EVAL properly detects blowups
# Copyright 2009 William S. Yerazunis.
# This file is under GPLv3, as described in COPYING.
# stress-out EVAL by an infinitely looping evaluation. This SHOULD
# cause an nonfatal error.
#
window
output / \n\n/
output / This test checks to see that EVAL properly detects blowups\n/
output / You should see an error message as the next thing,\n/
output / with a large string of Z's. \n/
{
isolate (:e:) /:*/
isolate (:a:) /:*:e::a:Z/
eval (:b:) /:*:a:/
output /:*:a:/
}
trap (:my_err:) /*/
{
output /We should get an error here, due to the (intentional!) loop\n/
output /:*:my_err:/
}
|