Skip to content

Commit 8d551fc

Browse files
sandy-lcqstephanosio
authored andcommitted
tests/meson.build: use relative path to refer to files
Fix error like: Fatal error: can't create tests/ptimer-test.p/..._qemu-5.2.0_hw_core_ptimer.c.o: File name too long when build path is too long, use meson.source_root() will make this filename too long. Fixed by using relative path to refer to files Upstream-Status: Submitted [send to qemu-devel] Signed-off-by: Changqing Li <[email protected]>
1 parent 834849e commit 8d551fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,17 @@ endif
127127

128128
if have_system
129129
tests += {
130-
'ptimer-test': ['ptimer-test-stubs.c', meson.project_source_root() / 'hw/core/ptimer.c'],
130+
'ptimer-test': ['ptimer-test-stubs.c', '../../hw/core/ptimer.c'],
131131
'test-iov': [],
132132
'test-opts-visitor': [testqapi],
133133
'test-xs-node': [qom],
134-
'test-virtio-dmabuf': [meson.project_source_root() / 'hw/display/virtio-dmabuf.c'],
134+
'test-virtio-dmabuf': ['../../hw/display/virtio-dmabuf.c'],
135135
'test-qmp-cmds': [testqapi],
136136
'test-xbzrle': [migration],
137137
'test-util-sockets': ['socket-helpers.c'],
138138
'test-base64': [],
139139
'test-bufferiszero': [],
140-
'test-smp-parse': [qom, meson.project_source_root() / 'hw/core/machine-smp.c'],
140+
'test-smp-parse': [qom, '../../hw/core/machine-smp.c'],
141141
'test-vmstate': [migration, io],
142142
'test-yank': ['socket-helpers.c', qom, io, chardev]
143143
}

0 commit comments

Comments
 (0)