pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2007-10-22
2007-10-22 10:58:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>
0fe1c17e35ae1e4f28f55b4e91e4c928c57c4865 (
10
lines) (+
9
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added test for double expansion.
Rev: src/testsuite.in:1.792
1:
START_MARKER
-
test_true([["$Id: testsuite.in,v 1.
791
2007/10/
20
13
:
49
:
36
grubba Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
792
2007/10/
22
10
:
58
:
02
grubba Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]])
8212:
#include FILENAME ]], 17)
+
test_any([[
+
// Double expansion
+
string FILENAME = "";
+
#define FILENAME "conftest.h" + FILENAME
+
return #string FILENAME;
+
]], "return 17;\n")
+
test_true( rm("conftest.h") ) test_true(intp(__LINE__))