Project

General

Profile

Actions

Bug #5675

closed

Processing of wrong test model

Added by Mikhail Chupilko over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Andrei Tatarnikov
Category:
-
Target version:
Start date:
03/03/2015
Due date:
% Done:

30%

Estimated time:
Detected in build:
2.1.4-beta-150219
Platform:
Published in build:
2.2.9

Description

If one uses test templates for not-yet-compiled microprocessor model or incorrect model (say, different), it will result in the following output. I guess, the robustness property requires a bit more appropriate output.

NameError: cannot load Java class ru.ispras.microtesk.model.minimips.Model
         for_name at org/jruby/javasupport/JavaClass.java:1227
  get_proxy_class at org/jruby/javasupport/JavaUtilities.java:34
      java_import at file:/C:/work/microtesk-2.1.4-beta-150219/lib/jars/jruby.jar!/jruby/java/core_ext/object.rb:26
              map at org/jruby/RubyArray.java:2361
      java_import at file:/C:/work/microtesk-2.1.4-beta-150219/lib/jars/jruby.jar!/jruby/java/core_ext/object.rb:22
     create_model at C:\work\microtesk-2.1.4-beta-150219/lib/ruby/microtesk.rb:90
             main at C:\work\microtesk-2.1.4-beta-150219/lib/ruby/microtesk.rb:32
           (root) at C:\work\microtesk-2.1.4-beta-150219/lib/ruby/microtesk.rb:111

NoMethodError: undefined method `addi' for #<EuclidTemplate:0x62db0521>
  method_missing at org/jruby/RubyBasicObject.java:1670
  method_missing at C:/work/microtesk-2.1.4-beta-150219/lib/ruby/template.rb:111
             run at C:/work/microtesk-2.1.4-beta-150219/arch/minimips/templates/euclid.rb:40
        generate at C:/work/microtesk-2.1.4-beta-150219/lib/ruby/template.rb:364
            main at C:\work\microtesk-2.1.4-beta-150219/lib/ruby/microtesk.rb:48
            each at org/jruby/RubyHash.java:1257
            main at C:\work\microtesk-2.1.4-beta-150219/lib/ruby/microtesk.rb:43
          (root) at C:\work\microtesk-2.1.4-beta-150219/lib/ruby/microtesk.rb:111
Actions

Also available in: Atom PDF