Skip to content

Instantly share code, notes, and snippets.

@igorzi
Created July 30, 2011 06:45
Show Gist options
  • Save igorzi/1115276 to your computer and use it in GitHub Desktop.
Save igorzi/1115276 to your computer and use it in GitHub Desktop.
From 60a962a9a145fb88e1a1c013646ddbffe949e8f5 Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <igorzi@microsoft.com>
Date: Fri, 29 Jul 2011 23:43:11 -0700
Subject: [PATCH] fix spawn tests
---
test/run-tests.c | 2 +-
test/test-spawn.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/run-tests.c b/test/run-tests.c
index a22f620..4bcc90e 100644
--- a/test/run-tests.c
+++ b/test/run-tests.c
@@ -47,7 +47,7 @@ int main(int argc, char **argv) {
}
if (strcmp(argv[1], "spawn_helper2") == 0) {
- printf("hello world\n");
+ printf("hello world");
return 1;
}
diff --git a/test/test-spawn.c b/test/test-spawn.c
index 4cfe6b1..f581955 100644
--- a/test/test-spawn.c
+++ b/test/test-spawn.c
@@ -142,7 +142,7 @@ TEST_IMPL(spawn_stdout) {
ASSERT(exit_cb_called == 1);
ASSERT(close_cb_called == 2); /* Once for process once for the pipe. */
- ASSERT(strcmp("hello world\n", output) == 0 || strcmp("hello world\r\n", output) == 0);
+ ASSERT(strcmp("hello world", output) == 0);
return 0;
}
--
1.7.4.msysgit.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment