1997-11-06 05:38:25 +08:00
|
|
|
/*
|
|
|
|
* assert_test.c --
|
|
|
|
*
|
|
|
|
* This file tests Postgres assert checking.
|
|
|
|
*
|
|
|
|
* Copyright (c) 1996, Massimo Dal Zotto <dz@cs.unitn.it>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "postgres.h"
|
|
|
|
#include "assert_test.h"
|
|
|
|
|
1998-02-26 12:46:47 +08:00
|
|
|
extern int assertTest(int val);
|
|
|
|
extern int assertEnable(int val);
|
1997-11-06 05:38:25 +08:00
|
|
|
|
|
|
|
int
|
|
|
|
assert_enable(int val)
|
|
|
|
{
|
1998-02-26 12:46:47 +08:00
|
|
|
return assertEnable(val);
|
1997-11-06 05:38:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
assert_test(int val)
|
|
|
|
{
|
1998-02-26 12:46:47 +08:00
|
|
|
return assertTest(val);
|
1997-11-06 05:38:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
-- Enable/disable Postgres assert checking.
|
|
|
|
--
|
|
|
|
create function assert_enable(int4) returns int4
|
1998-02-26 12:46:47 +08:00
|
|
|
as '/usr/local/pgsql/lib/assert_test.so'
|
|
|
|
language 'C';
|
1997-11-06 05:38:25 +08:00
|
|
|
|
|
|
|
-- Test Postgres assert checking.
|
|
|
|
--
|
|
|
|
create function assert_test(int4) returns int4
|
1998-02-26 12:46:47 +08:00
|
|
|
as '/usr/local/pgsql/lib/assert_test.so'
|
|
|
|
language 'C';
|
1997-11-06 05:38:25 +08:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* end of file */
|