Skip to content

Commit 8e86257

Browse files
committed
fix: add no PCI host bridge visible scenario
1 parent 35f02e6 commit 8e86257

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

testApp/pcitest.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ static void findRootBridge(void) {
5151

5252
testDiag("Find host bridges");
5353
testOk1(devPCIFindCB(hostbridge, &showbridge, NULL, 0)==0);
54+
if(foundbridges<=0) {
55+
testSkip(18, "No PCI host bridge visible.");
56+
return;
57+
}
5458
testOk1(foundbridges>0);
5559

5660
testDiag("Get root bridge");

0 commit comments

Comments
 (0)