//kythe/cxx/extractor/testdata:objc_lib_test fails on OS X
OpenPublic

Description
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
-----------------------------------------------------------------------------
Two /kythe/code facts about a node differed in value:
  App(vname, (_Exit#n#builtin, "", "", "", c++))
  
The decoded values were:
child {
  kind: TYPE
  pre_text: "void"
}
child {
  pre_text: "\t"
}
child {
  kind: IDENTIFIER
  pre_text: "_Exit"
}
child {
  kind: PARAMETER_LOOKUP_BY_PARAM
  pre_text: "("
  post_child_text: ", "
  post_text: ")"
}
post_text: " __dead2"


 -----------------  versus  ----------------- 

child {
  kind: TYPE
  pre_text: "void"
}
child {
  pre_text: "\t "
}
child {
  kind: IDENTIFIER
  pre_text: "_Exit"
}
child {
  kind: PARAMETER_LOOKUP_BY_PARAM
  pre_text: "("
  post_child_text: ", "
  post_text: ")"
}
post_text: " __dead2"

Could not verify all goals. The furthest we reached was:
  kythe/cxx/extractor/testdata/objc_lib.m:8:5-8:34 @Box defines/binding BoxIface
  Goal: App(fact, (EVar(0x00007fe6fa801660 = <nullptr>), /kythe/edge/defines/binding, EVar(0x00007fe6fa801690 = <nullptr>), /, ""))
Use --strategy=TestRunner=standalone to disable sandboxing for the failing actions.
salguarnieri created this task.Via WebApr 12 2017, 12:14 PM
salguarnieri claimed this task.
salguarnieri added a project: Objective-C.
salguarnieri added a subscriber: salguarnieri.
Herald added a subscriber: Core Team. · View Herald TranscriptVia HeraldApr 12 2017, 12:14 PM
salguarnieri added a comment.Via WebApr 13 2017, 12:57 PM

There are a few problems:

  1. We see _Exit declared slightly differently. I haven't figured out why this happens yet.
  2. The objc test tested name facts, which aren't generated any longer. We could update just the .m file, but the usual practice is to generate a new .xa file when the .m file changes. Our xa generation script is broken under bazel 0.4.5, but works correctly with bazel@head.

Add Comment