diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2020-06-30 11:44:13 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2020-06-30 11:44:13 +0000 |
commit | 4e1f938f9e4d41dcfe106b432ae2b08d3d5ab7c5 (patch) | |
tree | 2c61f53413cda0b76794d52f5b730115bf50b659 /usr/src/test | |
parent | cb3493721e0f08d42f41165a7c089d9c11dcecab (diff) | |
parent | 1326c48877254e828afea8c9f7529f6faf1a1fde (diff) | |
download | illumos-joyent-release-20200702.tar.gz |
[illumos-gate merge]release-20200702
commit 1326c48877254e828afea8c9f7529f6faf1a1fde
12790 locale data install should not attempt to copy missing files
commit 5f9772673df89384a3fa8f1cbfcccd8d331f83ff
10854 empty struct array confuses CTF
commit 3f764e121447070c490c9637dd5791f8c8823ee4
12604 w needs to use line name instead of pid
commit 35060ceaa548c2d6fa63812e06a1a0f8dc4a06b0
12459 iwn: possible unaligned pointer issue
Diffstat (limited to 'usr/src/test')
-rw-r--r-- | usr/src/test/util-tests/tests/ctf/check-array.c | 10 | ||||
-rw-r--r-- | usr/src/test/util-tests/tests/ctf/test-array.c | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/usr/src/test/util-tests/tests/ctf/check-array.c b/usr/src/test/util-tests/tests/ctf/check-array.c index be7a192480..46be6332cb 100644 --- a/usr/src/test/util-tests/tests/ctf/check-array.c +++ b/usr/src/test/util-tests/tests/ctf/check-array.c @@ -10,7 +10,7 @@ */ /* - * Copyright 2019, Joyent, Inc. + * Copyright 2020 Joyent, Inc. */ /* @@ -36,6 +36,7 @@ static check_symbol_t check_syms[] = { { "g", "int [4][5][6][7][8]" }, { "h", "int [4][5][6][7][8][9]" }, { "i", "int [4][5][6][7][8][9][10]" }, + { "empty", "int [0]" }, { NULL } }; @@ -72,11 +73,18 @@ static check_descent_t check_array_i[] = { { NULL }, }; +static check_descent_t check_array_empty[] = { + { "int [0]", CTF_K_ARRAY, "int", 0 }, + { "int", CTF_K_INTEGER }, + { NULL } +}; + static check_descent_test_t descents[] = { { "a", check_array_a }, { "b", check_array_b }, { "c", check_array_c }, { "i", check_array_i }, + { "empty", check_array_empty }, { NULL } }; diff --git a/usr/src/test/util-tests/tests/ctf/test-array.c b/usr/src/test/util-tests/tests/ctf/test-array.c index 9c15771caf..14fc21d5dd 100644 --- a/usr/src/test/util-tests/tests/ctf/test-array.c +++ b/usr/src/test/util-tests/tests/ctf/test-array.c @@ -10,7 +10,7 @@ */ /* - * Copyright (c) 2019, Joyent, Inc. + * Copyright 2020 Joyent, Inc. */ /* @@ -27,3 +27,5 @@ int f[4][5][6][7]; int g[4][5][6][7][8]; int h[4][5][6][7][8][9]; int i[4][5][6][7][8][9][10]; + +int empty[] = { }; |