anchor.diff:      ?assert(TestSo4 > TestSo3),
       ?assert(Test2o4 > TestSo3),
       wait(),
  -    % when test1.h changes, everything is rebuilt
  +    %% when test1.h changes, everything is rebuilt
       ?assertMatch({ok, _}, retest_sh:run("touch c_src/test1.h", [])),
       ?assertMatch({ok, _}, retest_sh:run("./rebar compile", [])),
       TestSo5 = filelib:last_modified("priv/test.so"),
  
positive.code: %% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*-
  %% ex: ts=4 sw=4 et
  
  -module(port_rt).
  -export([files/0,
  
negative.code:     ].
  
  run(_Dir) ->
      %% wait a bit for new files to have different timestamps
      wait(),
      %% test.so is created during first compile
      ?assertEqual(0, filelib:last_modified("priv/test.so")),
      ?assertMatch({ok, _}, retest_sh:run("./rebar compile", [])),
      TestSo1 = filelib:last_modified("priv/test.so"),
      ?assert(TestSo1 > 0),
      wait(),
      %% nothing happens during second compile
      ?assertMatch({ok, _}, retest_sh:run("./rebar compile", [])),
      TestSo2 = filelib:last_modified("priv/test.so"),
      Test1o2 = filelib:last_modified("c_src/test1.o"),
  