Table of Contents

Name

texec - execute a program with a time limit

Synopsis

texec [ -t N | -s N | -m N | -h N ] [ -v ] program [ argu_ments ]

Description

The texec program executes program with a specified time limit. If the program runs for longer than the maximum time, it will be terminated. This is useful for running regression tests with a compiler that may generate code with infinite loops. The default time limit is infinity. The arguments are passed to the program.

Options

-t N

-s N
Set the time limit to N seconds.
-m N
Set the time limit to N minutes.
-h N
Set the time limit to N hours.
-v
Print the execution time when the program is terminated.


Table of Contents