diff options
| author | Andreas Schneider <asn@samba.org> | 2013-12-12 21:25:01 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2013-12-12 21:25:01 +0100 |
| commit | 580a75ec306dc939f0d325ed639ea41ea7e482e2 (patch) | |
| tree | fa7cc58f0e894fdef9b4c95396260b143b1813fc | |
| parent | 17c7a05f564d7349503b6effed3e4ddb6eb1e87e (diff) | |
| download | socket_wrapper-580a75ec306dc939f0d325ed639ea41ea7e482e2.tar.gz socket_wrapper-580a75ec306dc939f0d325ed639ea41ea7e482e2.tar.xz socket_wrapper-580a75ec306dc939f0d325ed639ea41ea7e482e2.zip | |
tests: Remove unused code.
| -rw-r--r-- | tests/testsuite.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/testsuite.c b/tests/testsuite.c index 8f18097..0c9bfc6 100644 --- a/tests/testsuite.c +++ b/tests/testsuite.c @@ -47,22 +47,6 @@ static void teardown(void **state) } } -#if 0 -static void test_socket_wrapper_dir(void **state) -{ - backup_env(); - - setenv("SOCKET_WRAPPER_DIR", "foo", 1); - assert_string_equal(socket_wrapper_dir(), "foo"); - setenv("SOCKET_WRAPPER_DIR", "./foo", 1); - assert_string_equal(socket_wrapper_dir(), "foo"); - unsetenv("SOCKET_WRAPPER_DIR"); - assert_non_null(socket_wrapper_dir()); - - restore_env(); -} -#endif - static void test_swrap_socket(void **state) { int rc; @@ -101,22 +85,6 @@ static void test_swrap_ioctl_sock(void **state) #endif } -#if 0 -unsigned int socket_wrapper_default_iface(void); -static bool test_socket_wrapper_default_iface(struct torture_context *tctx) -{ - backup_env(); - unsetenv("SOCKET_WRAPPER_DEFAULT_IFACE"); - torture_assert_int_equal(tctx, socket_wrapper_default_iface(), 1, "unset"); - setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "2", 1); - torture_assert_int_equal(tctx, socket_wrapper_default_iface(), 2, "unset"); - setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "bla", 1); - torture_assert_int_equal(tctx, socket_wrapper_default_iface(), 1, "unset"); - restore_env(); - return true; -} -#endif - int main(void) { int rc; |
