summaryrefslogtreecommitdiff
path: root/test/integration_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration_test.c')
-rw-r--r--test/integration_test.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/integration_test.c b/test/integration_test.c
index 0ef3f5d..b6c0f36 100644
--- a/test/integration_test.c
+++ b/test/integration_test.c
@@ -22,15 +22,12 @@
void
assert_exit_status(char* filename, int expected_exit_status)
{
- char command[255] = "../pipac ";
+ char command[255] = "../pipa --silent --out /tmp/pipa_program ";
strcat(command, filename);
- strcat(command, " > /tmp/pipa_example.s");
system(command);
- system("as -o /tmp/pipa_example.o /tmp/pipa_example.s --64");
- system("ld -o /tmp/pipa_example /tmp/pipa_example.o");
- int status = system("/tmp/pipa_example");
+ int status = system("/tmp/pipa_program");
if (WIFEXITED(status)) {
int exit_status = WEXITSTATUS(status);