Skip to content

Commit 0a162a6

Browse files
committed
test: add undefined values to cmakedefine tests
1 parent 6d7fc36 commit 0a162a6

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

test/standalone/cmakedefine/config.h.in

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@
4646

4747
// @ substition
4848

49-
// no substition
49+
// // undefined key, removed
50+
// @undefvalue@
51+
52+
// no value, removed
5053
// @noval@
5154

52-
// no substition
55+
// no value, removed
5356
// @noval@@noval@
5457

55-
// no substition
58+
// no value, removed
5659
// @noval@.@noval@
5760

5861
// 1
@@ -94,13 +97,16 @@
9497
// test10
9598
// @noval@@stringval@@trueval@@zeroval@
9699

97-
// no substition
100+
// undefined key, removed
101+
// ${undefvalue}
102+
103+
// no value, removed
98104
// ${noval}
99105

100-
// no substition
106+
// no value, removed
101107
// ${noval}${noval}
102108

103-
// no substition
109+
// no value, removed
104110
// ${noval}.${noval}
105111

106112
// 1

test/standalone/cmakedefine/expected_config.h

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@
4646

4747
// @ substition
4848

49-
// no substition
49+
// // undefined key, removed
5050
//
5151

52-
// no substition
52+
// no value, removed
5353
//
5454

55-
// no substition
55+
// no value, removed
56+
//
57+
58+
// no value, removed
5659
// .
5760

5861
// 1
@@ -94,13 +97,16 @@
9497
// test10
9598
// test10
9699

97-
// no substition
100+
// undefined key, removed
101+
//
102+
103+
// no value, removed
98104
//
99105

100-
// no substition
106+
// no value, removed
101107
//
102108

103-
// no substition
109+
// no value, removed
104110
// .
105111

106112
// 1

0 commit comments

Comments
 (0)