gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9850: drop tests for stuff that's be


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9850: drop tests for stuff that's been moved to other files.
Date: Wed, 17 Dec 2008 17:46:20 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9850
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-12-17 17:46:20 -0700
message:
  drop tests for stuff that's been moved to other files.
modified:
  testsuite/libnet.all/test_handler.cpp
=== modified file 'testsuite/libnet.all/test_handler.cpp'
--- a/testsuite/libnet.all/test_handler.cpp     2008-11-29 20:25:32 +0000
+++ b/testsuite/libnet.all/test_handler.cpp     2008-12-18 00:46:20 +0000
@@ -70,11 +70,11 @@
 static const char *result;
 
 static void usage (void);
-static void test_pollfds();
-static void test_que();
+//static void test_pollfds();
+//static void test_que();
 
-void test1(Handler::thread_params_t *args);
-void test2(Handler::thread_params_t *args);
+void test1(Network::thread_params_t *args);
+void test2(Network::thread_params_t *args);
 
 int
 main (int argc, char* argv[]) {
@@ -115,17 +115,20 @@
         }
     }
 
+    log_unimpl("FIXME: this test case is mostly depreciated due to 
refactoring");
     // run the tests
-    test_que();
-    test_pollfds();
+//    test_que();
+//    test_pollfds();
 }
 
+#if 0
+FIXME: needs to be moved to network tests
 void
 test_pollfds()
 {
     Handler hand;
     struct pollfd fds1;
-    Handler::entry_t *func1 = test1;
+    Network::entry_t *func1 = test1;
     fds1.fd = 3;
     fds1.events = POLLIN |  POLLRDHUP;
 
@@ -137,7 +140,7 @@
     }
 
     struct pollfd fds2;
-    Handler::entry_t *func2 = test2;
+    Network::entry_t *func2 = test2;
     fds2.fd = 4;
     fds2.events = POLLIN |  POLLRDHUP;
 
@@ -155,8 +158,8 @@
         runtest.fail ("Handler::getPollFDPtr()");
     }
     
-    Handler::thread_params_t args;
-    Handler::entry_t *ptr1 = hand.getEntry(3);
+    Network::thread_params_t args;
+    Network::entry_t *ptr1 = hand.getEntry(3);
     if (ptr1) {
         ptr1(&args);
         if (strcmp(result, "test1") == 0) {
@@ -168,7 +171,7 @@
         runtest.unresolved ("test1()");
     }
 
-    Handler::entry_t *ptr2 = hand.getEntry(4);
+    Network::entry_t *ptr2 = hand.getEntry(4);
     if (ptr2) {
         ptr2(&args);
         if (strcmp(result, "test2") == 0) {
@@ -181,7 +184,10 @@
     }
     
 }
+#endif
 
+#if 0
+FIXME: needs to be moved to qcue tests
 void
 test_que()
 {
@@ -252,15 +258,16 @@
      
 //     que.dump();
 }
+#endif
 
 void
-test1(Handler::thread_params_t *args)
+test1(Network::thread_params_t *args)
 {
     result = "test1";
 }
 
 void
-test2(Handler::thread_params_t *args)
+test2(Network::thread_params_t *args)
 {
     result = "test2";
 }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]