added a new parameter to the regresion test

This commit is contained in:
Jeff Hill
2002-01-09 00:55:58 +00:00
parent 8ea152dde5
commit 20071d87f5
3 changed files with 29 additions and 5 deletions

View File

@@ -2111,7 +2111,8 @@ void verifyImmediateTearDown ()
ca_task_exit ();
}
int acctst ( char *pName, unsigned channelCount, unsigned repetitionCount )
int acctst ( char *pName, unsigned channelCount,
unsigned repetitionCount, enum ca_preemptive_callback_select select )
{
chid chan;
int status;
@@ -2125,6 +2126,9 @@ int acctst ( char *pName, unsigned channelCount, unsigned repetitionCount )
verifyImmediateTearDown ();
status = ca_context_create ( select );
SEVCHK ( status, NULL );
verifyDataTypeMacros ();
connections = ca_get_ioc_connection_count ();

View File

@@ -2,15 +2,21 @@
#include <stdio.h>
#include <stdlib.h>
#include "cadef.h"
#include "caDiagnostics.h"
int main ( int argc, char **argv )
{
unsigned channelCount;
unsigned repetitionCount;
enum ca_preemptive_callback_select preempt;
int aBoolean;
if ( argc < 2 || argc > 4 ) {
printf ( "usage: %s <PV name> [channel count] [repetition count]\n", argv[0] );
if ( argc < 2 || argc > 5 ) {
printf (
"usage: %s <PV name> [channel count] [repetition count] [enable preemptive callback]\n",
argv[0] );
}
if ( argc >= 3 ) {
@@ -27,7 +33,20 @@ int main ( int argc, char **argv )
repetitionCount = 1;
}
acctst ( argv[1], channelCount, repetitionCount );
if ( argc >= 5 ) {
aBoolean = atoi ( argv[4] );
}
else {
aBoolean = 0;
}
if ( aBoolean ) {
preempt = ca_disable_preemptive_callback;
}
else {
preempt = ca_enable_preemptive_callback;
}
acctst ( argv[1], channelCount, repetitionCount, preempt );
return 0;
}

View File

@@ -7,7 +7,8 @@ extern "C" {
enum appendNumberFlag {appendNumber, dontAppendNumber};
int catime ( char *channelName, unsigned channelCount, enum appendNumberFlag appNF );
int acctst ( char *pname, unsigned channelCount, unsigned repititionCount );
int acctst ( char *pname, unsigned channelCount, unsigned repititionCount,
enum ca_preemptive_callback_select select );
#define CATIME_OK 0
#define CATIME_ERROR -1