* $Id$
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <limits.h>
#include <ccunit/CCUnit.h>
/** @file
{
int rc;
FILE* fp;
+ char srcpath[PATH_MAX * 2];
+ char* srcdir = getenv ("srcdir");
+ if (srcdir == NULL)
+ srcdir = ".";
+ sprintf (srcpath, "%s/testReadSuite.c", srcdir);
fp = freopen (logname, "w", stderr);
CCUNIT_ASSERT_NOT_NULL (fp);
rc = ccunit_va_makeSuite ("testReadSuite", "-v",
- "-o", "suiteReadSuite.log", "testReadSuite.c", NULL);
+ "-o", "suiteReadSuite.log", srcpath, NULL);
CCUNIT_ASSERT_EQ_INT (0, rc);
fclose (fp);
}