* fix for wrong nested comments resulting in wrong results under *nix, etc., with redirected output

git-svn-id: trunk@49334 -
This commit is contained in:
Tomas Hajny 2021-05-03 22:16:36 +00:00
parent aa03991088
commit cb2c0ae594

View File

@ -1,5 +1,5 @@
{$DEFINE VERBOSE} { $DEFINE VERBOSE}
{$DEFINE DEBUG} { $DEFINE DEBUG}
(* Define the following if the test will be run manually in a console *) (* Define the following if the test will be run manually in a console *)
(* (no output redirection) - otherwise the test will fail for some targets. *) (* (no output redirection) - otherwise the test will fail for some targets. *)
{ $DEFINE CONSOLE} { $DEFINE CONSOLE}
@ -18,12 +18,12 @@ const
ConsoleDeviceName = 'CON'; ConsoleDeviceName = 'CON';
{$DEFINE TESTCONSOLEOK} {$DEFINE TESTCONSOLEOK}
{$ELSE} {$ELSE}
{ {$IF DEFINED(UNIX)} (* {$IF DEFINED(UNIX)}
(* I don't know whether there's a device on Unix allowing to enforce output to console even if standard output is redirected for the given process... *) { I don't know whether there's a device on Unix allowing to enforce output to console even if standard output is redirected for the given process... }
ConsoleDeviceName = '/dev/tty'; ConsoleDeviceName = '/dev/tty';
{$DEFINE TESTCONSOLEOK} {$DEFINE TESTCONSOLEOK}
{$ELSE} {$ELSE}
} *)
{$IFDEF CONSOLE} {$IFDEF CONSOLE}
ConsoleDeviceName = ''; ConsoleDeviceName = '';
{$DEFINE TESTCONSOLEOK} {$DEFINE TESTCONSOLEOK}