""" % repository)
test.write(['repository', 'foo.h'], r"""
-#define STRING1 "repository/foo.h"
+#define STRING1 "repository/foo.h"
#include <bar.h>
""")
test.write(['repository', 'bar.h'], r"""
-#define STRING2 "repository/bar.h"
+#define STRING2 "repository/bar.h"
""")
test.write(['repository', 'foo.c'], r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("%s\n", STRING1);
- printf("%s\n", STRING2);
- printf("repository/foo.c\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("%s\n", STRING1);
+ printf("%s\n", STRING2);
+ printf("repository/foo.c\n");
+ exit (0);
}
""")
#
test.write(['work', 'foo.h'], r"""
-#define STRING1 "work/foo.h"
+#define STRING1 "work/foo.h"
#include <bar.h>
""")
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("%s\n", STRING1);
- printf("%s\n", STRING2);
- printf("work/foo.c\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("%s\n", STRING1);
+ printf("%s\n", STRING2);
+ printf("work/foo.c\n");
+ exit (0);
}
""")
#
test.write(['work', 'bar.h'], r"""
-#define STRING2 "work/bar.h"
+#define STRING2 "work/bar.h"
""")
test.run(chdir = 'work', arguments = '.')