Menu

#2 "The system cannot find the file specified"

open
nobody
None
5
2009-06-24
2009-06-24
Anonymous
No

I upgraded to cfix 1.4 from 1.3 today and received this error. "The system cannot find the file specified."

I have one solution, with numerous test projects. I have one huge main test project that no longer works. Then I broke down my projects into smaller chunks so I can run smaller test suites. There are 5 smaller pieces broken down from my one main one. That means, that all the settings in the project dependencies are the same for all the projects. Nothing else has changed, the code is all the same, same asserts. I don't know why I get this error. My paths are all correct.

Any insight? It just doesn't seem to find my fixture.

I'm coding in C.

static void FixtureSetup()
{
}
static void FixtureTeardown()
{
CFIX_LOG( L"Tearing down..." );
}

CFIX_BEGIN_FIXTURE( MyFixture )

CFIX_FIXTURE_ENTRY( (CFIX_PE_TESTCASE_ROUTINE)Scenario1)

CFIX_FIXTURE_SETUP( (CFIX_PE_TESTCASE_ROUTINE)FixtureSetup )

CFIX_FIXTURE_TEARDOWN( (CFIX_PE_TESTCASE_ROUTINE)FixtureTeardown )
CFIX_END_FIXTURE()

If this was the wrong venue to post these questions. I do apologize and point out some list serve I can e-mail these type of things to.

Thanks!

- cfix user!

Discussion

  • Johannes Passing

    Hi,

    sorry for this inconvenience. But of course, this is the right place to ask.

    Just to be sure that I understood you right: The single (huge) project failed to run, but the five smaller projects all ran fine, right?

    If your code has worked before, there must be a problem with the new cfix release. Given your problem description, however, I have not managed to reproduce this issue.

    Can you please provide the command line you have been using (1) for running the huge project and (2) for running the small projects? It would also be great if you could use Process Monitor [1] to monitor the fle activity of cfix32.exe while runnung the huge project and would send me the results.

    Finally, have you tried running cfix32.exe <directory> rather than cfix32.exe <file> so that all DLLs in the directory are used? Does the huge DLL work then?

    (Just another small note -- the cast to CFIX_PE_TESTCASE_ROUTINE in your code should be unnecessary. If the compiler complains about incompatible types, then you've probebly forgotten to either add __stdcall to your test routines or compile with /Gz)

    --Johannes

    [1] http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

     
  • Nobody/Anonymous

    Hi, Thanks for getting back to me so soon!

    Actually other way around, my large project works, but my smaller ones do not. I should also mention i'm working in visual studio 2005 so I am running cfix from the directory that I include in options -> VC++ Directories, where you put in $(CFIX_HOME)\bin\i386 etc.

    Anyway, I downloaded the process monitor and figured out which file was missing. Turns out cfix was expecting a path along the lines of /debug/debug/files although visual studio was creating just /debug/files so that was a quick fix.

    I just refreshed paths and deleted and recompiled it all.

    Thanks for your help!! I really appreciate it. :)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.