--- t/10-xs.t 2008/08/18 18:44:47 20 +++ t/10-xs.t 2008/08/18 18:48:33 21 @@ -5,7 +5,7 @@ use blib; -use Test::More tests => 25; +use Test::More tests => 26; use Test::Exception; use Data::Dump qw/dump/; @@ -33,7 +33,7 @@ ok( tcidbsetfwmmax( $idb, 0 ), 'tcidbsetfwmmax' ); -ok( tcidbopen( $idb, $path, IDBOWRITER | IDBOCREAT ), "tcidbopen $path" ); +ok( tcidbopen( $idb, $path, IDBOWRITER | IDBOCREAT | IDBOTRUNC ), "tcidbopen $path" ); ok( tcidbclose( $idb ), 'tcidbclose' ); @@ -63,4 +63,6 @@ # order is not defined, so we need to sort it is_deeply( [ sort @ids ], [ 42, 65536 ], 'all records' ); +ok( tcidbsync( $idb ), 'tcidbsync' ); + diag tcidberrmsg( tcidbecode( $idb ) );