projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6deb7e3
)
Avoid #if inside macro expansion
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 9 Jun 2009 20:12:55 +0000
(22:12 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 9 Jun 2009 20:12:55 +0000
(22:12 +0200)
test/tstccl.c
patch
|
blob
|
history
diff --git
a/test/tstccl.c
b/test/tstccl.c
index
f985890
..
6455d70
100644
(file)
--- a/
test/tstccl.c
+++ b/
test/tstccl.c
@@
-218,15
+218,17
@@
void tst1(int pass)
"@attr 5=1 @attr 4=2 @attr 1=1016 b "));
/* Bug #2895 */
"@attr 5=1 @attr 4=2 @attr 1=1016 b "));
/* Bug #2895 */
- YAZ_CHECK(tst_ccl_query(bibset, "a? b?",
#if 1
#if 1
+ YAZ_CHECK(tst_ccl_query(bibset, "a? b?",
/* incorrect. */
"@and @attr 4=2 @attr 1=1016 a? "
/* incorrect. */
"@and @attr 4=2 @attr 1=1016 a? "
+ "@attr 5=1 @attr 4=2 @attr 1=1016 b "));
#else
#else
+ YAZ_CHECK(tst_ccl_query(bibset, "a? b?",
/* correct */
"@and @attr 5=1 @attr 4=2 @attr 1=1016 a "
/* correct */
"@and @attr 5=1 @attr 4=2 @attr 1=1016 a "
-#endif
"@attr 5=1 @attr 4=2 @attr 1=1016 b "));
"@attr 5=1 @attr 4=2 @attr 1=1016 b "));
+#endif
ccl_qual_rm(&bibset);
}
ccl_qual_rm(&bibset);
}