Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #12640

Closed (moved)
Open
Opened Jul 16, 2014 by George Kadianakis@asn

Entry guard unittest (#12207) fail in out-of-tree builds

In the unittests introduced by #12207 (moved), I'm reading a file containing some fake descriptors.

The file is at /src/test/test_descriptors.txt and when I'm loading it in the code, I do:

static void *
fake_network_setup(const struct testcase_t *testcase)
{
  /* This is the file containing our test descriptors. */
  const char *fname = BUILDDIR "/src/test/test_descriptors.txt";

But apparently, the BUILDDIR macro was completely wrong there, since I was looking for the root of the source directory, whereas BUILDDIR is the directory we are building (who would have thought). Apparently, this breaks the unittests in the out-of-tree builds of jenkins.

We should probably find the right macro to use there. I didn't find a SRCDIR in config.log but maybe autotools already have something for us?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.2.5.x-final
Milestone
Tor: 0.2.5.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#12640