1#!/bin/sh 2# 3# aegis - project change supervisor 4# Copyright (C) 2007, 2008 Peter Miller 5# 6# This program is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 3 of the License, or 9# (at your option) any later version. 10# 11# This program is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with this program. If not, see 18# <http://www.gnu.org/licenses/>. 19# 20 21TEST_SUBJECT="shared_ptr functionality" 22 23# load up standard prelude and test functions 24. test_funcs 25 26# 27# test the shared_ptr functionality 28# 29activity="test basic shared pointers" 30cat > test.ok << 'fubar' 31constructor (4) 32constructor (1) 33constructor (2) 34constructor (3) 35destructor (1) 36destructor (2) 37destructor (3) 38destructor (4) 39fubar 40if test $? -ne 0 ; then no_result; fi 41 42test_shared_ptr > test.out 43if test $? -ne 0 ; then fail; fi 44 45diff test.ok test.out 46if test $? -ne 0 ; then fail; fi 47 48# 49# Only definite negatives are possible. 50# The functionality exercised by this test appears to work, 51# no other guarantees are made. 52# 53pass 54