Skip to content

Crasher when testing load of something already loaded #843

@atari2600tim

Description

@atari2600tim

If you run the test_load function to check if a file can load or not, on a file that is already loaded, then it crashes.
It can be tested on Lil/testsuite by doing eval return test_load(base_name(this_object()));

For now, it can be avoided with a simul_efun like this:

int test_load(string filename){
  if(filename && find_object(filename)) error("test_load called on already loaded "+filename);
  return efun::test_load(filename);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions