qemu-e2k/tests
Markus Armbruster dd044023e6 tests/qapi-schema: Demonstrate broken C code for 'if'
The C code generated for 'if' conditionals is incorrectly
parenthesized.  For instance,

    'if': { 'not': { 'any': [ { 'not': 'TEST_IF_EVT' },
			      { 'not': 'TEST_IF_STRUCT' } ] } } }

generates

    #if !(!defined(TEST_IF_EVT)) || (!defined(TEST_IF_STRUCT))

This is wrong.  Correct would be:

    #if !(!defined(TEST_IF_EVT) || !defined(TEST_IF_STRUCT))

Cover the issue in qapi-schema-test.json.  This generates bad #if in
tests/test-qapi-events.h and other files.

Add a similar condition to doc-good.json.  The generated documentation
is fine.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210831123809.1107782-5-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-09-03 17:09:10 +02:00
..
acceptance tests: Remove uses of deprecated raspi2/raspi3 machine names 2021-09-01 11:08:15 +01:00
bench
data tests: acpi: tpm1.2: Add expected TPM 1.2 ACPI blobs 2021-08-31 17:33:12 -04:00
decode
docker ci: add libusb for windows builds 2021-07-29 11:18:24 +02:00
fp
guest-debug
image-fuzzer
include
keys
migration tests/migration: fix unix socket migration 2021-07-14 14:15:52 +01:00
multiboot
perf/block/qcow2
plugin
qapi-schema tests/qapi-schema: Demonstrate broken C code for 'if' 2021-09-03 17:09:10 +02:00
qemu-iotests iotests/image-fleecing: add test-case for copy-before-write filter 2021-09-01 14:38:08 +02:00
qtest Fuzzing Patches for 2021-09-01 2021-09-02 14:59:05 +01:00
rocker
tcg tests/tcg/riscv64: Add test for division 2021-09-01 11:59:12 +10:00
tsan
uefi-test-tools
unit tests: Remove uses of deprecated raspi2/raspi3 machine names 2021-09-01 11:08:15 +01:00
vm tests/vm: update openbsd to release 6.9 2021-07-14 14:33:53 +01:00
vmstate-static-checker-data
check-block.sh
dbus-vmstate-daemon.sh
Makefile.include Acceptance tests: do not try to reuse packages from the system 2021-07-13 16:19:41 -04:00
meson.build
requirements.txt
test-qht-par.c
vhost-user-bridge.c