From 1c323a2f75c9626a7b1373d3305fc1d10583b470 Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Sat, 12 Mar 2005 22:51:30 +0000
Subject: [PATCH] Added more test cases.  Made the tests less likely to loop
 forever.

---
 ChangeLog | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index d8325cc..0c56651 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,46 @@
+2005-03-12  Per Cederqvist  <ceder@ingate.com>
+
+	Added more test cases.  Made the tests less likely to loop
+	forever.
+	* test/hello.sh: New file.
+	* test/tool.sh: New file.
+	* test/test_spawn.py: Import test.base instead of importing
+	unittest.  Removed top-level code -- use testdriver.py to run the
+	tests instead.
+	(TestSpawn): Inherit from test.base.TestCase.
+	(TestSpawn.test_spawn_sleep_1): Use assertTimeDiff instead of
+	assertAlmostEqual.
+	(TestSpawn.test_spawn_sleep_1_compat): Ditto.
+	(TestSpawn.test_hello_world): New test.
+	(TestSpawn.test_stderr): New test.
+	(TestSpawn.test_stderr_2): New test.
+	* test/test_popen.py: Import test.base instead of importing
+	unittest.  Removed top-level code -- use testdriver.py to run the
+	tests instead.
+	(TestPopen): Inherit from test.base.TestCase.  
+	(Timeout): Moved to test/base.py.
+	(handler): Ditto.
+	(TestPopen.setUp): Moved to test.base.TestCase.
+	(TestPopen.tearDown): Ditto.
+	(TestPopen.test_popen_sleep_1): Use assertTimeDiff instead of
+	assertAlmostEqual.
+	(TestPopen.test_popen_sleep_1_compat): Ditto.
+	(TestPopen.test_read_hello_no_eof_handling): New test.
+	(TestPopen.test_read_hello_no_eof_handling_no_exception): New
+	test.
+	* test/base.py (Timeout): New exception.
+	(handler): New signal handler.
+	(TestCase): New class.
+	(TestCase.setUp): New setup function.  Reset the state of
+	pcl_expect, and set up a SIGALRM timer.
+	(TestCase.tearDown): Cancel the SIGALRM timer.
+	(TestCase.progress): Re-arm the SIGALRM timer.
+	(TestCase.assertTimeDiff): New function.
+
+2005-03-02  Per Cederqvist  <ceder@ingate.com>
+
+	* test/test_environment.py: New tests.
+
 2005-01-19  Per Cederqvist  <ceder@ingate.com>
 
 	Added some test cases.
-- 
GitLab