Skip to content

Commit

Permalink
more fixing tests for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Mar 11, 2024
1 parent a219c43 commit 3938664
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions library/fdb/tests/fdb_tests.pas
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,15 @@ procedure TFDBTests.test(manager: TFDBManager);
Writeln('t3');

try
md := conn.FetchMetaData;
try
assertTrue(md.HasTable('TestTable'))
finally
md.free;
if {$IFDEF LINUX} conn.Owner.Platform <> kdbMySQL {$ELSE} true {$ENDIF} then // blows up with function sequence error with mysql on linux?
begin
md := conn.FetchMetaData;
try
assertTrue(md.HasTable('TestTable'))
finally
md.free;
end;
end;
end;
Writeln('t4');
assertTrue(conn.CountSQL('Select count(*) from TestTable') = 0, 'dbt.0');
Expand Down

0 comments on commit 3938664

Please sign in to comment.