Skip to content

Commit

Permalink
Enable more tests on non-Windows. (#6199)
Browse files Browse the repository at this point in the history
Some tests were `#ifdef _WINDOWS` even though they compiled
and ran on other platforms. Remove the #ifdef protections
in these cases.
  • Loading branch information
waywardmonkeys committed Jul 29, 2022
1 parent 44100a3 commit 7823757
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 39 deletions.
5 changes: 0 additions & 5 deletions src/test/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyright (c) 2015 Microsoft Corporation
--*/

#ifdef _WINDOWS
#include "api/z3.h"
#include "api/z3_private.h"
#include <iostream>
Expand Down Expand Up @@ -112,7 +111,3 @@ void tst_api() {
test_bvneg();
test_mk_distinct();
}
#else
void tst_api() {
}
#endif
5 changes: 0 additions & 5 deletions src/test/dl_product_relation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyright (c) 2015 Microsoft Corporation
--*/

#ifdef _WINDOWS
#include "ast/reg_decl_plugins.h"
#include "muz/base/dl_context.h"
#include "muz/fp/dl_register_engine.h"
Expand Down Expand Up @@ -362,7 +361,3 @@ void tst_dl_product_relation() {
test_finite_product_relation(fparams, params);

}
#else
void tst_dl_product_relation() {
}
#endif
7 changes: 0 additions & 7 deletions src/test/dl_relation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Copyright (c) 2015 Microsoft Corporation
--*/

#ifdef _WINDOWS

#include "ast/reg_decl_plugins.h"
#include "muz/base/dl_context.h"
#include "muz/fp/dl_register_engine.h"
Expand Down Expand Up @@ -296,8 +294,3 @@ void tst_dl_relation() {
datalog::test_interval_relation();
datalog::test_bound_relation();
}

#else
void tst_dl_relation() {
}
#endif
5 changes: 0 additions & 5 deletions src/test/matcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Module Name:
Revision History:
--*/
#ifdef _WINDOWS
#include "ast/substitution/matcher.h"
#include "ast/ast_pp.h"
#include "ast/reg_decl_plugins.h"
Expand Down Expand Up @@ -110,7 +109,3 @@ void tst1() {
void tst_matcher() {
tst1();
}
#else
void tst_matcher() {
}
#endif
6 changes: 0 additions & 6 deletions src/test/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyright (c) 2015 Microsoft Corporation
--*/

#ifdef _WINDOWS
#include "api/z3.h"
#include "api/z3_private.h"
#include <iostream>
Expand Down Expand Up @@ -59,8 +58,3 @@ void tst_memory() {
Z3_reset_memory();

}

#else
void tst_memory() {
}
#endif
5 changes: 0 additions & 5 deletions src/test/no_overflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Module Name:
Revision History:
--*/
#ifdef _WINDOWS

#include "api/z3.h"
#include "util/trace.h"
Expand Down Expand Up @@ -724,7 +723,3 @@ void tst_no_overflow() {
}
}
}
#else
void tst_no_overflow() {
}
#endif
6 changes: 0 additions & 6 deletions src/test/simplifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyright (c) 2015 Microsoft Corporation
--*/

#ifdef _WINDOWS
#include "api/z3.h"
#include "api/z3_private.h"
#include <iostream>
Expand Down Expand Up @@ -214,8 +213,3 @@ void tst_simplifier() {
test_bool();
test_skolemize_bug();
}

#else
void tst_simplifier() {
}
#endif

0 comments on commit 7823757

Please sign in to comment.