Skip to content
  • Derek Morton's avatar
    gem_flink_race/prime_self_import: Improve test reliability · 3953d2dd
    Derek Morton authored and Daniel Vetter's avatar Daniel Vetter committed
    
    
    gem_flink_race and prime_self_import have subtests which read the
    number of open gem objects from debugfs to determine if objects have
    leaked during the test. However the test can fail sporadically if
    the number of gem objects changes due to other process activity.
    This patch introduces a change to check the number of gem objects
    several times to filter out any fluctuations.
    
    v2: Moved the common code to a library and made the loop android
    specific (Daniel Vetter)
    v3: Renamed get_stable_obj_count -> igt_get_stable_obj_count
    
    Signed-off-by: default avatarDerek Morton <derek.j.morton@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
    3953d2dd