8bec270f90
Added another system-level test function for ORTE that just spins until terminated by a ctrl-c signal. Modified orterun - added a couple of newlines to the output when abnormally terminating so the prompt always is on a new line. This commit was SVN r10866.
26 строки
345 B
C
26 строки
345 B
C
/* -*- C -*-
|
|
*
|
|
* $HEADER$
|
|
*
|
|
* A program that just spins - provides mechanism for testing user-driven
|
|
* abnormal program termination
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
|
|
int i;
|
|
double pi;
|
|
|
|
i = 0;
|
|
while (1) {
|
|
i++;
|
|
pi = i / 3.14159256;
|
|
if (i > 100) i = 0;
|
|
}
|
|
|
|
return 0;
|
|
}
|