Skip to content

Commit 0e44fbb

Browse files
committed
[AMDGPU][Comgr] Fix test issues in amd/comgr/test/unbundle_hip_test.c
(cherry picked from commit 379ad27503991fcf2f2799cd26c4f1aa974e62fc)
1 parent 3089d5e commit 0e44fbb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

amd/comgr/test/unbundle_hip_test.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ int main(int Argc, char *Argv[]) {
182182
Status = amd_comgr_release_data(DataElement);
183183
checkError(Status, "amd_comgr_release_data");
184184

185-
if (BytesSize != 0) {
186-
printf("Bitcode host element size: %ld (expected 0)\n", BytesSize);
185+
if (!BytesSize) {
186+
printf("Bitcode host empty (expected non-empty)\n");
187187
exit(1);
188188
}
189189

@@ -248,8 +248,8 @@ int main(int Argc, char *Argv[]) {
248248
checkError(Status, "amd_comgr_release_data");
249249

250250
if (BytesSize != 0) {
251-
printf("Object host element size: %ld (expected empty)\n", BytesSize);
252-
exit(1);
251+
printf("Object host element size: %ld (expected empty)\n", BytesSize);
252+
exit(1);
253253
}
254254

255255
// object hip-gfx900 element (non-empty)
@@ -312,8 +312,8 @@ int main(int Argc, char *Argv[]) {
312312
Status = amd_comgr_release_data(DataElement);
313313
checkError(Status, "amd_comgr_release_data");
314314

315-
if (BytesSize != 8) {
316-
printf("Arvhive host element size: %ld (expected 8)\n", BytesSize);
315+
if (!BytesSize) {
316+
printf("Arvhive host empty (expected non-empty)\n");
317317
exit(1);
318318
}
319319

0 commit comments

Comments
 (0)