Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
f074f6b6
Commit
f074f6b6
authored
Sep 07, 2012
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #412 from Quuxplusone/test-release-builds-too
Add "#undef NDEBUG" to all tests.
parents
84728cd9
cf20932d
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
63 additions
and
43 deletions
+63
-43
test_connect_delay.cpp
tests/test_connect_delay.cpp
+6
-6
test_connect_resolve.cpp
tests/test_connect_resolve.cpp
+3
-3
test_hwm.cpp
tests/test_hwm.cpp
+0
-2
test_invalid_rep.cpp
tests/test_invalid_rep.cpp
+3
-1
test_last_endpoint.cpp
tests/test_last_endpoint.cpp
+3
-2
test_monitor.cpp
tests/test_monitor.cpp
+2
-4
test_msg_flags.cpp
tests/test_msg_flags.cpp
+3
-2
test_pair_inproc.cpp
tests/test_pair_inproc.cpp
+0
-1
test_pair_ipc.cpp
tests/test_pair_ipc.cpp
+0
-1
test_pair_tcp.cpp
tests/test_pair_tcp.cpp
+0
-1
test_reqrep_device.cpp
tests/test_reqrep_device.cpp
+4
-3
test_reqrep_inproc.cpp
tests/test_reqrep_inproc.cpp
+0
-1
test_reqrep_ipc.cpp
tests/test_reqrep_ipc.cpp
+0
-1
test_reqrep_tcp.cpp
tests/test_reqrep_tcp.cpp
+0
-1
test_router_behavior.cpp
tests/test_router_behavior.cpp
+0
-1
test_shutdown_stress.cpp
tests/test_shutdown_stress.cpp
+3
-1
test_sub_forward.cpp
tests/test_sub_forward.cpp
+4
-3
test_term_endpoint.cpp
tests/test_term_endpoint.cpp
+24
-3
test_timeo.cpp
tests/test_timeo.cpp
+5
-4
testutil.hpp
tests/testutil.hpp
+3
-2
No files found.
tests/test_connect_delay.cpp
View file @
f074f6b6
...
...
@@ -18,15 +18,15 @@ You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "../include/zmq.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <string>
#include "../include/zmq.h"
#undef NDEBUG
#include <assert.h>
static
void
*
server
(
void
*
)
{
...
...
tests/test_connect_resolve.cpp
View file @
f074f6b6
...
...
@@ -18,12 +18,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include "../include/zmq.h"
#include <stdio.h>
#include <errno.h>
#include "../include/zmq.h"
#undef NDEBUG
#include <assert.h>
int
main
(
void
)
{
...
...
tests/test_hwm.cpp
View file @
f074f6b6
...
...
@@ -19,9 +19,7 @@
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
int
main
(
void
)
...
...
tests/test_invalid_rep.cpp
View file @
f074f6b6
...
...
@@ -20,9 +20,11 @@
*/
#include "../include/zmq.h"
#include <assert.h>
#include <stdio.h>
#undef NDEBUG
#include <assert.h>
int
main
(
void
)
{
fprintf
(
stderr
,
"test_invalid_rep running...
\n
"
);
...
...
tests/test_last_endpoint.cpp
View file @
f074f6b6
...
...
@@ -19,10 +19,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
<assert.h>
#include
"../include/zmq.h"
#include <string.h>
#include "../include/zmq.h"
#undef NDEBUG
#include <assert.h>
static
void
do_bind_and_verify
(
void
*
s
,
const
char
*
endpoint
)
{
...
...
tests/test_monitor.cpp
View file @
f074f6b6
...
...
@@ -19,12 +19,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <string.h>
#include "testutil.hpp"
#include "../include/zmq.h"
#include "../include/zmq_utils.h"
#include <string.h>
#include "testutil.hpp"
static
int
events
;
...
...
tests/test_msg_flags.cpp
View file @
f074f6b6
...
...
@@ -19,10 +19,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
<assert.h>
#include
"../include/zmq.h"
#include <string.h>
#include "../include/zmq.h"
#undef NDEBUG
#include <assert.h>
int
main
(
void
)
{
...
...
tests/test_pair_inproc.cpp
View file @
f074f6b6
...
...
@@ -18,7 +18,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
...
...
tests/test_pair_ipc.cpp
View file @
f074f6b6
...
...
@@ -18,7 +18,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
...
...
tests/test_pair_tcp.cpp
View file @
f074f6b6
...
...
@@ -19,7 +19,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
...
...
tests/test_reqrep_device.cpp
View file @
f074f6b6
...
...
@@ -19,11 +19,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <string.h>
#include "../include/zmq.h"
#include <stdio.h>
#include <string.h>
#include "../include/zmq.h"
#undef NDEBUG
#include <assert.h>
int
main
(
void
)
{
...
...
tests/test_reqrep_inproc.cpp
View file @
f074f6b6
...
...
@@ -18,7 +18,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
...
...
tests/test_reqrep_ipc.cpp
View file @
f074f6b6
...
...
@@ -18,7 +18,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
...
...
tests/test_reqrep_tcp.cpp
View file @
f074f6b6
...
...
@@ -19,7 +19,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
...
...
tests/test_router_behavior.cpp
View file @
f074f6b6
...
...
@@ -19,7 +19,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
...
...
tests/test_shutdown_stress.cpp
View file @
f074f6b6
...
...
@@ -20,11 +20,13 @@
*/
#include "../include/zmq.h"
#include <assert.h>
#include <pthread.h>
#include <stddef.h>
#include <stdio.h>
#undef NDEBUG
#include <assert.h>
#define THREAD_COUNT 100
extern
"C"
...
...
tests/test_sub_forward.cpp
View file @
f074f6b6
...
...
@@ -19,11 +19,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include "../include/zmq.h"
#include "../include/zmq_utils.h"
#include <stdio.h>
#undef NDEBUG
#include <assert.h>
int
main
(
void
)
{
...
...
tests/test_term_endpoint.cpp
View file @
f074f6b6
#include <assert.h>
#include <string.h>
#include <unistd.h>
/*
Copyright (c) 2010-2011 250bpm s.r.o.
Copyright (c) 2011 iMatix Corporation
Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
0MQ is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "../include/zmq.h"
#include "../include/zmq_utils.h"
#include <string.h>
#include <unistd.h>
#undef NDEBUG
#include <assert.h>
int
main
(
void
)
{
...
...
tests/test_timeo.cpp
View file @
f074f6b6
...
...
@@ -18,13 +18,14 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
<assert.h>
#include
<string.h>
#include
"../include/zmq.h"
#include
"../include/zmq_utils.h"
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#
include "../include/zmq.h"
#include
"../include/zmq_utils.h"
#
undef NDEBUG
#include
<assert.h>
extern
"C"
{
...
...
tests/testutil.hpp
View file @
f074f6b6
...
...
@@ -22,10 +22,11 @@
#ifndef __ZMQ_TEST_TESTUTIL_HPP_INCLUDED__
#define __ZMQ_TEST_TESTUTIL_HPP_INCLUDED__
#include
<assert.h>
#include
"../include/zmq.h"
#include <string.h>
#include "../include/zmq.h"
#undef NDEBUG
#include <assert.h>
inline
void
bounce
(
void
*
sb
,
void
*
sc
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment