Browse Source

* disable test on avr as it works only with table driven init/final code

git-svn-id: trunk@37605 -
florian 7 years ago
parent
commit
3352311124
1 changed files with 7 additions and 0 deletions
  1. 7 0
      tests/test/tunit1.pp

+ 7 - 0
tests/test/tunit1.pp

@@ -1,3 +1,9 @@
+{$ifdef CPUAVR}
+{ avr uses instruction based init/finalization of units: this does not work if an error happens during finalization,
+  it results in an endless loop, so skip this test for avr }
+begin
+end.
+{$else CPUAVR}
 uses
 uses
    erroru,uunit1;
    erroru,uunit1;
 
 
@@ -5,3 +11,4 @@ begin
    if testvar<>1234567 then
    if testvar<>1234567 then
      do_error(1000);
      do_error(1000);
 end.
 end.
+{$endif CPUAVR}