Commits

Steven Knight  committed ac71a46

Fix SourceCode test ordering. (Kevin Quick)

  • Participants
  • Parent commits cc83031

Comments (0)

Files changed (1)

File test/SourceCode.py

     cat(env, source, target)
 
 env = Environment(BUILDERS={'Cat':Builder(action=cat)}, SUBDIR='sub')
+env.SourceCode('$SUBDIR', Builder(action=sc_cat, env=env))
 env.Cat('aaa.out', 'sub/aaa.in')
-env.Cat('bbb.out', 'sub/bbb.in')
+bbb_in = File('sub/bbb.in')
+bbb_in.is_pseudo_derived()
+env.Cat('bbb.out', bbb_in)
 env.Cat('ccc.out', 'sub/ccc.in')
 env.Cat('all', ['aaa.out', 'bbb.out', 'ccc.out'])
-env.SourceCode('$SUBDIR', Builder(action=sc_cat, env=env))
 SConscript('sub/SConscript', "env")
 
 SourceCode('sub2', Builder(action=sc_cat, env=env))